mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Make constants const, avoids unnecessary symbols in the .data section.
This commit is contained in:
parent
d47557dcd1
commit
1d590aa7d5
|
@ -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) :
|
||||
|
|
|
@ -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) :
|
||||
|
|
|
@ -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) :
|
||||
|
|
Loading…
Reference in a new issue