From 74be9738c8dbb3bc037d0bcba0d7fc1539343630 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Thu, 19 Aug 2010 21:57:42 +0200
Subject: Fixed Mac OS X compilation.


diff --git a/Swiften/Application/MacOSXApplicationPathProvider.cpp b/Swiften/Application/MacOSXApplicationPathProvider.cpp
index 7e4931a..e4b17da 100644
--- a/Swiften/Application/MacOSXApplicationPathProvider.cpp
+++ b/Swiften/Application/MacOSXApplicationPathProvider.cpp
@@ -9,6 +9,8 @@
 #include <iostream>
 #include <mach-o/dyld.h>
 
+#include "Swiften/Base/ByteArray.h"
+
 namespace Swift {
 
 MacOSXApplicationPathProvider::MacOSXApplicationPathProvider(const String& name) : ApplicationPathProvider(name) {
@@ -34,7 +36,7 @@ boost::filesystem::path MacOSXApplicationPathProvider::getExecutableDir() const
 	ByteArray path;
 	uint32_t size = 4096;
 	path.resize(size);
-	if (_NSGetExecutablePath(path, &size) == 0) {
+	if (_NSGetExecutablePath(path.getData(), &size) == 0) {
 		return boost::filesystem::path(path.toString().getUTF8Data()).parent_path();
 	}
 	else {
diff --git a/Swiften/Application/UnixApplicationPathProvider.h b/Swiften/Application/UnixApplicationPathProvider.h
index 170d53a..c361267 100644
--- a/Swiften/Application/UnixApplicationPathProvider.h
+++ b/Swiften/Application/UnixApplicationPathProvider.h
@@ -11,6 +11,8 @@
 #include <iostream>
 #include <unistd.h>
 
+#include "Swiften/Base/ByteArray.h"
+
 namespace Swift {
 	class UnixApplicationPathProvider : public ApplicationPathProvider {
 		public:
-- 
cgit v0.10.2-6-g49f6