Make constants const, avoids unnecessary symbols in the .data section.

This commit is contained in:
Volker Krause 2014-09-26 20:38:57 +02:00
parent d47557dcd1
commit 1d590aa7d5
3 changed files with 6 additions and 6 deletions

View 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) :

View 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) :

View 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) :