]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgpanel/FGPanelApplication.cxx
Use future-proof SGPath APIs.
[flightgear.git] / utils / fgpanel / FGPanelApplication.cxx
index f8aecf86a17ee68c8df015daf943b7e31811089a..a14cf267a5f20fdd37824c03d17823d84be9d576 100644 (file)
@@ -153,7 +153,7 @@ FGPanelApplication::FGPanelApplication( int argc, char ** argv ) :
 
   try {
     SGPath tpath = ApplicationProperties::GetRootPath( panelFilename.c_str() );
-    readProperties( tpath.str(), ApplicationProperties::Properties );
+    readProperties( tpath, ApplicationProperties::Properties );
   }
   catch( sg_io_exception & e ) {
     cerr << e.getFormattedMessage() << endl;
@@ -353,7 +353,7 @@ SGPath ApplicationProperties::GetCwd()
   buf[511] = '\0';
   if (cwd)
   {
-    path = cwd;
+      path = SGPath::fromLocal8Bit(cwd);
   }
   return path;
 }