Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
af185d1e
Commit
af185d1e
authored
Jun 21, 2010
by
Leandro Melo
Browse files
Generic highlighter: Satisfying coverity checks.
parent
15faf23e
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/generichighlighter/highlighter.cpp
View file @
af185d1e
...
...
@@ -65,7 +65,7 @@ Highlighter::Highlighter(QTextDocument *parent) :
Highlighter
::~
Highlighter
()
{}
Highlighter
::
BlockData
::
BlockData
()
:
m_foldingIndentDelta
(
0
)
Highlighter
::
BlockData
::
BlockData
()
:
m_foldingIndentDelta
(
0
)
,
m_originalObservableState
(
-
1
)
{}
Highlighter
::
BlockData
::~
BlockData
()
...
...
src/plugins/texteditor/generichighlighter/itemdata.cpp
View file @
af185d1e
...
...
@@ -34,9 +34,13 @@ using namespace TextEditor;
using
namespace
Internal
;
ItemData
::
ItemData
()
:
m_italic
(
false
),
m_italicSpecified
(
false
),
m_bold
(
false
),
m_boldSpecified
(
false
),
m_underlined
(
false
),
m_underlinedSpecified
(
false
),
m_strikedOut
(
false
),
m_strikedOutSpecified
(
false
),
m_isCustomized
(
false
)
{}
...
...
src/plugins/texteditor/generichighlighter/itemdata.h
View file @
af185d1e
...
...
@@ -69,9 +69,6 @@ public:
bool
isCustomized
()
const
;
private:
QString
m_style
;
QColor
m_color
;
QColor
m_selectionColor
;
bool
m_italic
;
bool
m_italicSpecified
;
bool
m_bold
;
...
...
@@ -81,6 +78,9 @@ private:
bool
m_strikedOut
;
bool
m_strikedOutSpecified
;
bool
m_isCustomized
;
QString
m_style
;
QColor
m_color
;
QColor
m_selectionColor
;
};
}
// namespace Internal
...
...
src/plugins/texteditor/generichighlighter/specificrules.cpp
View file @
af185d1e
...
...
@@ -215,7 +215,8 @@ bool RegExprRule::doMatchSucceed(const QString &text,
// Keyword
KeywordRule
::
KeywordRule
(
const
QSharedPointer
<
HighlightDefinition
>
&
definition
)
:
m_overrideGlobal
(
false
)
m_overrideGlobal
(
false
),
m_localCaseSensitivity
(
Qt
::
CaseSensitive
)
{
setDefinition
(
definition
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment