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
Graphics
Okular
Commits
30e5a492
Commit
30e5a492
authored
Nov 26, 2019
by
Oliver Sander
Browse files
Use more 'nullptr' instead of '0'
parent
dc7f2dff
Changes
1
Hide whitespace changes
Inline
Side-by-side
generators/poppler/generator_pdf.cpp
View file @
30e5a492
...
...
@@ -657,7 +657,7 @@ Okular::Document::OpenResult PDFGenerator::init(QVector<Okular::Page*> & pagesVe
if
(
pdfdoc
->
isLocked
()
)
{
delete
pdfdoc
;
pdfdoc
=
0
;
pdfdoc
=
nullptr
;
return
Okular
::
Document
::
OpenNeedsPassword
;
}
}
...
...
@@ -666,7 +666,7 @@ Okular::Document::OpenResult PDFGenerator::init(QVector<Okular::Page*> & pagesVe
int
pageCount
=
pdfdoc
->
numPages
();
if
(
pageCount
<
0
)
{
delete
pdfdoc
;
pdfdoc
=
0
;
pdfdoc
=
nullptr
;
return
Okular
::
Document
::
OpenError
;
}
pagesVector
.
resize
(
pageCount
);
...
...
@@ -722,7 +722,7 @@ bool PDFGenerator::doCloseDocument()
delete
annotProxy
;
annotProxy
=
0
;
delete
pdfdoc
;
pdfdoc
=
0
;
pdfdoc
=
nullptr
;
userMutex
()
->
unlock
();
docSynopsisDirty
=
true
;
docSyn
.
clear
();
...
...
@@ -1967,7 +1967,7 @@ void PDFGenerator::addFormFields( Poppler::Page * popplerPage, Okular::Page * pa
QLinkedList
<
Okular
::
FormField
*>
okularFormFields
;
foreach
(
Poppler
::
FormField
*
f
,
popplerFormFields
)
{
Okular
::
FormField
*
of
=
0
;
Okular
::
FormField
*
of
=
nullptr
;
switch
(
f
->
type
()
)
{
case
Poppler
::
FormField
::
FormButton
:
...
...
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