changed: made static const data symbols really static const

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1080302
parent 9a21014e
......@@ -65,7 +65,7 @@ QColor(0xFF,0x54,0xFF), 0),
QColor(0xFF,0xFF,0xFF), 0)
};
const char* ColorScheme::colorNames[TABLE_COLORS] =
const char* const ColorScheme::colorNames[TABLE_COLORS] =
{
"Foreground",
"Background",
......@@ -88,7 +88,7 @@ const char* ColorScheme::colorNames[TABLE_COLORS] =
"Color6Intense",
"Color7Intense"
};
const char* ColorScheme::translatedColorNames[TABLE_COLORS] =
const char* const ColorScheme::translatedColorNames[TABLE_COLORS] =
{
I18N_NOOP("Foreground"),
I18N_NOOP("Background"),
......
......@@ -187,8 +187,8 @@ private:
// if no colors in the color scheme support
// randomization
static const char* colorNames[TABLE_COLORS];
static const char* translatedColorNames[TABLE_COLORS];
static const char* const colorNames[TABLE_COLORS];
static const char* const translatedColorNames[TABLE_COLORS];
static const ColorEntry defaultTable[]; // table of default color entries
};
......
......@@ -41,7 +41,7 @@
using namespace Konsole;
const char* KeyboardTranslatorManager::defaultTranslatorText =
const char* const KeyboardTranslatorManager::defaultTranslatorText =
#include <DefaultTranslatorText.h>
;
......
......@@ -493,7 +493,7 @@ public:
static KeyboardTranslatorManager* instance();
private:
static const char* defaultTranslatorText;
static const char* const defaultTranslatorText;
void findTranslators(); // locate the available translators
KeyboardTranslator* loadTranslator(const QString& name); // loads the translator
......
......@@ -52,14 +52,14 @@ using namespace Konsole;
//
// the other names are usually shorter versions for convenience
// when parsing konsoleprofile commands
static const char* GENERAL_GROUP = "General";
static const char* KEYBOARD_GROUP = "Keyboard";
static const char* APPEARANCE_GROUP = "Appearance";
static const char* SCROLLING_GROUP = "Scrolling";
static const char* TERMINAL_GROUP = "Terminal Features";
static const char* CURSOR_GROUP = "Cursor Options";
static const char* INTERACTION_GROUP = "Interaction Options";
static const char* ENCODING_GROUP = "Encoding Options";
static const char GENERAL_GROUP[] = "General";
static const char KEYBOARD_GROUP[] = "Keyboard";
static const char APPEARANCE_GROUP[] = "Appearance";
static const char SCROLLING_GROUP[] = "Scrolling";
static const char TERMINAL_GROUP[] = "Terminal Features";
static const char CURSOR_GROUP[] = "Cursor Options";
static const char INTERACTION_GROUP[] = "Interaction Options";
static const char ENCODING_GROUP[] = "Encoding Options";
const Profile::PropertyInfo Profile::DefaultPropertyNames[] =
{
......
......@@ -26,7 +26,7 @@
#include <QtGui/QKeyEvent>
#include <QtCore/QMimeData>
static const char* konsoleSessionMimeFormat = "konsole/session";
static const char konsoleSessionMimeFormat[] = "konsole/session";
ProfileListWidget::ProfileListWidget(QWidget* parent)
: QListWidget(parent)
......
......@@ -342,8 +342,8 @@ void Session::terminalWarning(const QString& message)
static const QByteArray warningText = i18n("Warning: ").toLocal8Bit();
QByteArray messageText = message.toLocal8Bit();
static const char* redPenOn = "\033[1m\033[31m";
static const char* redPenOff = "\033[0m";
static const char redPenOn[] = "\033[1m\033[31m";
static const char redPenOff[] = "\033[0m";
_emulation->receiveData(redPenOn,strlen(redPenOn));
_emulation->receiveData("\n\r\n\r",4);
......
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