Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPimTextEdit
Commits
e2d31866
Commit
e2d31866
authored
Sep 29, 2021
by
Laurent Montel
😁
Browse files
Remove some cppcheck warning
parent
e4d8ae4e
Pipeline
#83379
passed with stage
in 9 minutes and 25 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/composer-ng/richtextcomposercontroler.cpp
View file @
e2d31866
...
...
@@ -495,7 +495,6 @@ void RichTextComposerControler::RichTextComposerControlerPrivate::updateLink(con
QTextCharFormat
format
=
cursor
.
charFormat
();
// Save original format to create an extra space with the existing char
// format for the block
const
QTextCharFormat
originalFormat
=
format
;
if
(
!
linkUrl
.
isEmpty
())
{
// Add link details
format
.
setAnchor
(
true
);
...
...
src/insertimagewidget.cpp
View file @
e2d31866
...
...
@@ -31,7 +31,7 @@ static inline QString resolveAlias(const QString &name)
class
InsertImageWidgetPrivate
{
public:
InsertImageWidgetPrivate
(
InsertImageWidget
*
qq
)
explicit
InsertImageWidgetPrivate
(
InsertImageWidget
*
qq
)
:
q
(
qq
)
{
auto
lay
=
new
QVBoxLayout
(
q
);
...
...
src/inserttabledialog.cpp
View file @
e2d31866
...
...
@@ -20,7 +20,7 @@ using namespace KPIMTextEdit;
class
InsertTableDialog
::
InsertTableDialogPrivate
{
public:
InsertTableDialogPrivate
(
InsertTableDialog
*
qq
)
explicit
InsertTableDialogPrivate
(
InsertTableDialog
*
qq
)
:
q
(
qq
)
{
q
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Insert Table"
));
...
...
src/selectspecialchardialog.cpp
View file @
e2d31866
...
...
@@ -18,7 +18,7 @@ namespace KPIMTextEdit
class
SelectSpecialCharDialogPrivate
{
public:
SelectSpecialCharDialogPrivate
(
SelectSpecialCharDialog
*
qq
)
explicit
SelectSpecialCharDialogPrivate
(
SelectSpecialCharDialog
*
qq
)
:
q
(
qq
)
{
q
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Select Special Characters"
));
...
...
src/tableactionmenu.cpp
View file @
e2d31866
...
...
@@ -281,16 +281,16 @@ void TableActionMenuPrivate::_k_slotTableFormat()
tableFormat
.
setCellSpacing
(
dialog
->
spacing
());
tableFormat
.
setAlignment
(
dialog
->
alignment
());
QVector
<
QTextLength
>
constrains
;
constrains
.
reserve
(
newNumberOfColumns
);
QVector
<
QTextLength
>
constrains
Text
;
constrains
Text
.
reserve
(
newNumberOfColumns
);
const
QTextLength
::
Type
type
=
dialog
->
typeOfLength
();
const
int
length
=
dialog
->
length
();
const
QTextLength
textlength
(
type
,
length
/
newNumberOfColumns
);
for
(
int
i
=
0
;
i
<
newNumberOfColumns
;
++
i
)
{
constrains
.
append
(
textlength
);
constrains
Text
.
append
(
textlength
);
}
tableFormat
.
setColumnWidthConstraints
(
constrains
);
tableFormat
.
setColumnWidthConstraints
(
constrains
Text
);
const
QColor
tableBackgroundColor
=
dialog
->
tableBackgroundColor
();
if
(
dialog
->
useBackgroundColor
())
{
if
(
tableBackgroundColor
.
isValid
())
{
...
...
src/tableformatdialog.cpp
View file @
e2d31866
...
...
@@ -25,7 +25,7 @@ using namespace KPIMTextEdit;
class
TableFormatDialog
::
TableFormatDialogPrivate
{
public:
TableFormatDialogPrivate
(
TableFormatDialog
*
qq
)
explicit
TableFormatDialogPrivate
(
TableFormatDialog
*
qq
)
:
q
(
qq
)
{
q
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Table Format"
));
...
...
src/texteditor/plaintexteditor/plaintextsyntaxspellcheckinghighlighter.cpp
View file @
e2d31866
...
...
@@ -53,13 +53,12 @@ public:
class
PlainTextSyntaxSpellCheckingHighlighterPrivate
{
public:
PlainTextSyntaxSpellCheckingHighlighterPrivate
(
PlainTextEditor
*
plainText
)
explicit
PlainTextSyntaxSpellCheckingHighlighterPrivate
(
PlainTextEditor
*
plainText
)
:
editor
(
plainText
)
,
spellCheckingEnabled
(
false
)
{
}
PlainTextEditor
*
editor
=
nullpt
r
;
PlainTextEditor
*
const
edito
r
;
QColor
misspelledColor
;
bool
spellCheckingEnabled
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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