"const char* const x" -> "const char x[]"

Moves a few symbols from .data.rel.ro to .rodata, for some mini improvement
parent 1667d259
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
#include "kis_serializable_configuration.h" #include "kis_serializable_configuration.h"
const char* const KisBookmarkedConfigurationManager::ConfigDefault = "Default"; const char KisBookmarkedConfigurationManager::ConfigDefault[] = "Default";
const char* const KisBookmarkedConfigurationManager::ConfigLastUsed = "Last Used"; const char KisBookmarkedConfigurationManager::ConfigLastUsed[] = "Last Used";
struct KisBookmarkedConfigurationManager::Private { struct KisBookmarkedConfigurationManager::Private {
......
...@@ -32,8 +32,8 @@ class KLocalizedString; ...@@ -32,8 +32,8 @@ class KLocalizedString;
class KRITAIMAGE_EXPORT KisBookmarkedConfigurationManager class KRITAIMAGE_EXPORT KisBookmarkedConfigurationManager
{ {
public: public:
static const char* const ConfigDefault; static const char ConfigDefault[];
static const char* const ConfigLastUsed; static const char ConfigLastUsed[];
public: public:
/** /**
* @param configEntryGroup name of the configuration entry with the * @param configEntryGroup name of the configuration entry with the
......
...@@ -26,9 +26,9 @@ Boston, MA 02110-1301, USA. ...@@ -26,9 +26,9 @@ Boston, MA 02110-1301, USA.
namespace namespace
{ {
const char *const SIGNAL_PREFIX = "commSignal"; const char SIGNAL_PREFIX[] = "commSignal";
const int SIGNAL_PREFIX_LEN = 10; const int SIGNAL_PREFIX_LEN = 10;
const char *const SLOT_PREFIX = "commSlot"; const char SLOT_PREFIX[] = "commSlot";
const int SLOT_PREFIX_LEN = 8; const int SLOT_PREFIX_LEN = 8;
KoUpdater *createUpdater(KoFilterChain *chain) KoUpdater *createUpdater(KoFilterChain *chain)
......
...@@ -186,8 +186,8 @@ KoStore* KoStore::createStore(QWidget* window, const KUrl& url, Mode mode, const ...@@ -186,8 +186,8 @@ KoStore* KoStore::createStore(QWidget* window, const KUrl& url, Mode mode, const
namespace namespace
{ {
const char* const ROOTPART = "root"; const char ROOTPART[] = "root";
const char* const MAINNAME = "maindoc.xml"; const char MAINNAME[] = "maindoc.xml";
} }
KoStore::KoStore(Mode mode, bool writeMimetype) KoStore::KoStore(Mode mode, bool writeMimetype)
......
...@@ -68,14 +68,14 @@ void TestStorage::storage_data() ...@@ -68,14 +68,14 @@ void TestStorage::storage_data()
void TestStorage::storage() void TestStorage::storage()
{ {
const char* const test1 = "This test checks whether we're able to write to some arbitrary directory.\n"; const char test1[] = "This test checks whether we're able to write to some arbitrary directory.\n";
const char* const testDir = "0"; const char testDir[] = "0";
const char* const testDirResult = "0/"; const char testDirResult[] = "0/";
const char* const test2 = "This time we try to append the given relative path to the current dir.\n"; const char test2[] = "This time we try to append the given relative path to the current dir.\n";
const char* const test3 = "<xml>Hello World</xml>"; const char test3[] = "<xml>Hello World</xml>";
const char* const testDir2 = "test2/with/a"; const char testDir2[] = "test2/with/a";
const char* const testDir2Result = "0/test2/with/a/"; const char testDir2Result[] = "0/test2/with/a/";
const char* const test4 = "<xml>Heureka, it works</xml>"; const char test4[] = "<xml>Heureka, it works</xml>";
QFETCH(int, type); QFETCH(int, type);
QFETCH(QString, testFile); QFETCH(QString, testFile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment