From: mishas Date: Wed, 6 Dec 2006 12:09:58 +0000 (+0000) Subject: use .assign method of std::string X-Git-Url: http://git.maemo.org/git/?p=simple-launcher;a=commitdiff_plain;h=f11ed7f380661bd490677e83224e9434b1c0ae7d;hp=cd3c890b048e51044bedef63362715ad114ad338 use .assign method of std::string git-svn-id: file:///svnroot/simple-launcher/trunk@35 3ba93dab-e023-0410-b42a-de7732cf370a --- diff --git a/launcher-item.cc b/launcher-item.cc index 12582d1..55227f3 100644 --- a/launcher-item.cc +++ b/launcher-item.cc @@ -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); }