┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2014-09-26 20:38:57 +0200
committerVolker Krause <[email protected]>2014-09-26 20:38:57 +0200
commit1d590aa7d50bcf955e3356a09dcaa88e1989aa3a (patch)
treebe1af27a0d11bdf4501b3f07354b8b1f6fe04fee /src
parentd47557dcd17a028596c4e0e7b0aabc5db4847bed (diff)
Make constants const, avoids unnecessary symbols in the .data section.
Diffstat (limited to 'src')
-rw-r--r--src/panels/places/placesitemmodel.cpp2
-rw-r--r--src/settings/services/servicessettingspage.cpp6
-rw-r--r--src/views/viewproperties.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp
index d59d0b03a..abfe1d62f 100644
--- a/src/panels/places/placesitemmodel.cpp
+++ b/src/panels/places/placesitemmodel.cpp
@@ -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) :
diff --git a/src/settings/services/servicessettingspage.cpp b/src/settings/services/servicessettingspage.cpp
index 78a865d43..be43ae656 100644
--- a/src/settings/services/servicessettingspage.cpp
+++ b/src/settings/services/servicessettingspage.cpp
@@ -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) :
diff --git a/src/views/viewproperties.cpp b/src/views/viewproperties.cpp
index bcea06253..46c836274 100644
--- a/src/views/viewproperties.cpp
+++ b/src/views/viewproperties.cpp
@@ -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) :