X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaSystem.cxx;fp=src%2FcreaSystem.cxx;h=69293a982369586e718dd76c6bfe73a4062a7ea4;hb=e75e59008c595bb6abcc4595edd3cd352a609e89;hp=7060109e434f87863f3ceb596a8ff3b0732c7198;hpb=cd0879eeb29c1c5633cdcf2200b7e013a7b0286e;p=crea.git diff --git a/src/creaSystem.cxx b/src/creaSystem.cxx index 7060109..69293a9 100644 --- a/src/creaSystem.cxx +++ b/src/creaSystem.cxx @@ -44,8 +44,6 @@ namespace crea } #endif - - int System::GetAppPath(char *pname, size_t pathsize) { #ifdef LINUX @@ -166,10 +164,9 @@ int System::GetAppPath(char *pname, size_t pathsize) #endif /* MACOSX */ return -1; /* Path Lookup Failed */ -} - +} -std::string System::GetDllAppPath(std::string nomdll){ +std::string System::GetDllAppPath(std::string &nomdll){ std::string path = "."; #ifdef WIN32 char currentPath[_MAX_PATH]; @@ -183,8 +180,6 @@ std::string System::GetDllAppPath(std::string nomdll){ return path; } - - #if defined(_WIN32) #define CREACONTOUR_VALID_FILE_SEPARATOR_CHAR '\\' #else @@ -201,7 +196,7 @@ std::string System::GetExecutablePath(){ printf("Could not determine current executable path ? "); } // remove the exe name - char *slash; + char *slash; slash = strrchr(name, CREACONTOUR_VALID_FILE_SEPARATOR_CHAR); if (slash) { @@ -209,7 +204,5 @@ std::string System::GetExecutablePath(){ } return name; } - - - + } // namespace crea