fixed the parameter type: must be const
authormishas <mikhail.sobolev@gmail.com>
Wed, 14 Mar 2007 08:57:17 +0000 (08:57 +0000)
committermishas <mikhail.sobolev@gmail.com>
Wed, 14 Mar 2007 08:57:17 +0000 (08:57 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@75 3ba93dab-e023-0410-b42a-de7732cf370a

launcher-item.h

index 5a60611..bfa78bc 100644 (file)
@@ -78,7 +78,7 @@ typedef struct {
     return myNames[index];
   }
 
-  void add(std::string& name, LauncherItem *item) {
+  void add(const std::string& name, LauncherItem *item) {
     myNames.push_back(name);
     myItems[name] = item;
   }