use .assign method of std::string
authormishas <mikhail.sobolev@gmail.com>
Wed, 6 Dec 2006 12:09:58 +0000 (12:09 +0000)
committermishas <mikhail.sobolev@gmail.com>
Wed, 6 Dec 2006 12:09:58 +0000 (12:09 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@35 3ba93dab-e023-0410-b42a-de7732cf370a

launcher-item.cc

index 12582d1..55227f3 100644 (file)
@@ -19,7 +19,7 @@ inline std::string getStringWrapper(GKeyFile *keyFile, const gchar *group, const
   std::string result;
 
   if (tempo != 0) {
-    result = tempo;
+    result.assign(tempo);
 
     g_free(tempo);
   }
@@ -32,7 +32,7 @@ inline std::string getLocaleStringWrapper(GKeyFile *keyFile, const gchar *group,
   std::string result;
 
   if (tempo != 0) {
-    result = tempo;
+    result.assign(tempo);
 
     g_free(tempo);
   }