Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
System
KHelpCenter
Commits
5d92ec75
Commit
5d92ec75
authored
Oct 13, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use nullptr
parent
bb1d66d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
searchhandler.cpp
searchhandler.cpp
+1
-1
toc.cpp
toc.cpp
+2
-2
toc.h
toc.h
+1
-1
No files found.
searchhandler.cpp
View file @
5d92ec75
...
...
@@ -49,7 +49,7 @@ bool SearchJob::startLocal(const QString &cmdString)
mProcess
->
setOutputChannelMode
(
KProcess
::
SeparateChannels
);
mProcess
->
start
();
if
(
!
mProcess
->
waitForStarted
())
{
QString
txt
=
i18n
(
"Error executing search command '%1'."
,
cmdString
);
const
QString
txt
=
i18n
(
"Error executing search command '%1'."
,
cmdString
);
Q_EMIT
searchError
(
this
,
mEntry
,
txt
);
return
false
;
}
...
...
toc.cpp
View file @
5d92ec75
...
...
@@ -45,7 +45,7 @@ class TOCItem : public NavigatorItem
const
TOC
*
toc
()
const
{
return
m_toc
;
}
private:
TOC
*
m_toc
;
TOC
*
m_toc
=
nullptr
;
};
class
TOCChapterItem
:
public
TOCItem
...
...
@@ -75,8 +75,8 @@ class TOCSectionItem : public TOCItem
bool
TOC
::
m_alreadyWarned
=
false
;
TOC
::
TOC
(
NavigatorItem
*
parentItem
)
:
m_parentItem
(
parentItem
)
{
m_parentItem
=
parentItem
;
}
void
TOC
::
build
(
const
QString
&
file
)
...
...
toc.h
View file @
5d92ec75
...
...
@@ -65,7 +65,7 @@ class TOC : public QObject
QString
m_cacheFile
;
QString
m_sourceFile
;
NavigatorItem
*
m_parentItem
=
nullptr
;
NavigatorItem
*
const
m_parentItem
;
static
bool
m_alreadyWarned
;
};
...
...
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