]> cloud.milkyroute.net Git - dolphin.git/commitdiff
changed: made static const data symbols really static const
authorFriedrich W. H. Kossebau <kossebau@kde.org>
Tue, 26 Jan 2010 02:57:09 +0000 (02:57 +0000)
committerFriedrich W. H. Kossebau <kossebau@kde.org>
Tue, 26 Jan 2010 02:57:09 +0000 (02:57 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1080302

src/dolphinmodel.cpp
src/dolphinmodel.h
src/panels/information/kmetadataconfigurationdialog.cpp
src/panels/information/kmetadatawidget.cpp

index f7fd2b3502dad446972a95cde046bf64ac3b127d..746752b670845799a74215904c0fcb4d35a32c45 100644 (file)
@@ -41,7 +41,7 @@
 #include <QDir>
 #include <QFileInfo>
 
-const char* DolphinModel::m_others = I18N_NOOP2("@title:group Name", "Others");
+const char* const DolphinModel::m_others = I18N_NOOP2("@title:group Name", "Others");
 
 DolphinModel::DolphinModel(QObject* parent) :
     KDirModel(parent),
index 89a0a761c00d7684820cc3bfe93ad2f7f6c78b7f..adb59a39f0f95590da032725119433cff295e171 100644 (file)
@@ -60,7 +60,7 @@ private:
     bool m_hasVersionData;
     QHash<QPersistentModelIndex, KVersionControlPlugin::VersionState> m_revisionHash;
 
-    static const char* m_others;
+    static const char* const m_others;
 };
 
 #endif // DOLPHINMODEL_H
index e583417b0403a539b309a49ee9bdff2476c4ffce..e614a35fe8d2ee8cca357e28e23dcce6600cf69b 100644 (file)
@@ -179,7 +179,7 @@ void KMetaDataConfigurationDialog::Private::loadMetaData()
         // Meta information provided by Nepomuk that is already
         // available from KFileItem as "fixed item" (see above)
         // should not be shown as second entry.
-        static const char* hiddenProperties[] = {
+        static const char* const hiddenProperties[] = {
             "contentSize",   // = fixed item "size"
             "description",   // = fixed item "comment"
             "fileExtension", // ~ fixed item "type"
index 12e5039f14abc3943eead5ac63e45bdac712fb75..5ac64a9577cc662c3671e469323a5a45bd217f07 100644 (file)
@@ -281,7 +281,7 @@ void KMetaDataWidget::Private::initMetaInfoSettings()
 
         // trueg: KDE 4.5: use a blacklist of actual rdf properties
 
-        static const char* disabledProperties[] = {
+        static const char* const disabledProperties[] = {
             "asText", "contentSize", "created", "depth", "description", "fileExtension",
             "fileName", "fileSize", "hasTag", "isPartOf", "lastModified", "mimeType", "name",
             "numericRating", "parentUrl", "permissions", "plainTextContent", "owner",