]> Creatis software - crea.git/blobdiff - src/creaSystem.cxx
Pass std::string as reference
[crea.git] / src / creaSystem.cxx
index 7060109e434f87863f3ceb596a8ff3b0732c7198..69293a982369586e718dd76c6bfe73a4062a7ea4 100644 (file)
@@ -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