]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make constants const, avoids unnecessary symbols in the .data section.
authorVolker Krause <vkrause@kde.org>
Fri, 26 Sep 2014 18:38:57 +0000 (20:38 +0200)
committerVolker Krause <vkrause@kde.org>
Fri, 26 Sep 2014 18:38:57 +0000 (20:38 +0200)
src/panels/places/placesitemmodel.cpp
src/settings/services/servicessettingspage.cpp
src/views/viewproperties.cpp

index d59d0b03a08bef9c5c88cdc2d014cf3229144b9a..abfe1d62f5d468dc462edf1651d2d08ca571eaf1 100644 (file)
@@ -65,7 +65,7 @@ namespace {
     // be independent from changes in the Baloo-search-URL-syntax.
     // Hence a prefix to the application-name of the stored bookmarks is
     // added, which is only read by PlacesItemModel.
-    const char* AppNamePrefix = "-places-panel";
+    const char AppNamePrefix[] = "-places-panel";
 }
 
 PlacesItemModel::PlacesItemModel(QObject* parent) :
index 78a865d43bf777e42627251b90f4474c54caddcb..be43ae65656b0304652eb2cc5d14785a68e40c2d 100644 (file)
@@ -49,9 +49,9 @@
 namespace
 {
     const bool ShowDeleteDefault = false;
-    const char* VersionControlServicePrefix = "_version_control_";
-    const char* DeleteService = "_delete";
-    const char* CopyToMoveToService ="_copy_to_move_to";
+    const char VersionControlServicePrefix[] = "_version_control_";
+    const char DeleteService[] = "_delete";
+    const char CopyToMoveToService[] ="_copy_to_move_to";
 }
 
 ServicesSettingsPage::ServicesSettingsPage(QWidget* parent) :
index bcea0625348213eaa065a4c123e57a7a3616c17b..46c8362747d174e2c40390cfa1f05a541226ba0a 100644 (file)
@@ -43,10 +43,10 @@ namespace {
     // String representation to mark the additional properties of
     // the details view as customized by the user. See
     // ViewProperties::visibleRoles() for more information.
-    const char* CustomizedDetailsString = "CustomizedDetails";
+    const char CustomizedDetailsString[] = "CustomizedDetails";
 
     // Filename that is used for storing the properties
-    const char* ViewPropertiesFileName = ".directory";
+    const char ViewPropertiesFileName[] = ".directory";
 }
 
 ViewProperties::ViewProperties(const KUrl& url) :