From f0bf4b5a50fd5ebe24a7d804acad9bac52a18de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sat, 26 Mar 2016 11:48:13 +0100 Subject: [PATCH] Fix FTBFS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- part/kxetextviewsettings.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/part/kxetextviewsettings.cpp b/part/kxetextviewsettings.cpp index 7ed6ac6..5fb009f 100644 --- a/part/kxetextviewsettings.cpp +++ b/part/kxetextviewsettings.cpp @@ -87,13 +87,20 @@ void KXETextViewSettings::write( KConfig * pConfig ) const void KXETextViewSettings::read( const KConfig * pConfig ) { - m_colorDfltText = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_DEFAULT_TEXT, & DFLT_VALUE_COLOR_DEFAULT_TEXT ); - m_colorElemNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ELEMENT_NAMES, & DFLT_VALUE_COLOR_ELEMENT_NAMES ); - m_colorAttrNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_NAMES, & DFLT_VALUE_COLOR_ATTR_NAMES ); - m_colorAttrValues = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_VALUES, & DFLT_VALUE_COLOR_ATTR_VALUES ); - m_colorSyntaxChars = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_SYNTAX_CHARS, & DFLT_VALUE_COLOR_SYNTAX_CHARS ); - m_colorComments = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_COMENTS, & DFLT_VALUE_COLOR_COMENTS ); - m_colorErrors = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ERRORS, &DFLT_VALUE_COLOR_ERRORS ); + const TQColor tempColor1 = DFLT_VALUE_COLOR_DEFAULT_TEXT; + m_colorDfltText = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_DEFAULT_TEXT, &tempColor1 ); + const TQColor tempColor2 = DFLT_VALUE_COLOR_ELEMENT_NAMES; + m_colorElemNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ELEMENT_NAMES, &tempColor2 ); + const TQColor tempColor3 = DFLT_VALUE_COLOR_ATTR_NAMES; + m_colorAttrNames = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_NAMES, &tempColor3 ); + const TQColor tempColor4 = DFLT_VALUE_COLOR_ATTR_VALUES; + m_colorAttrValues = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ATTR_VALUES, &tempColor4 ); + const TQColor tempColor5 = DFLT_VALUE_COLOR_SYNTAX_CHARS; + m_colorSyntaxChars = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_SYNTAX_CHARS, &tempColor5 ); + const TQColor tempColor6 = DFLT_VALUE_COLOR_COMENTS; + m_colorComments = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_COMENTS, &tempColor6 ); + const TQColor tempColor7 = DFLT_VALUE_COLOR_ERRORS; + m_colorErrors = pConfig->readColorEntry( CONF_ENTRY_NAME_COLOR_ERRORS, &tempColor7 ); m_iIndentSteps = pConfig->readNumEntry( CONF_ENTRY_NAME_INDENT_STEPS, DFLT_VALUE_INDENT_STEPS ); m_bWrapOn = pConfig->readNumEntry( CONF_ENTRY_WRAP_ON, DFLT_VALUE_WRAP_ON ); }