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 / Register
Toggle navigation
Open sidebar
Masamichi Hosoda
poppler
Commits
8d2a3e53
Commit
8d2a3e53
authored
Feb 10, 2019
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify saveAs GooStrings
parent
c0c89223
Pipeline
#18400
passed with stage
in 22 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
poppler/PDFDoc.cc
poppler/PDFDoc.cc
+3
-3
poppler/PDFDoc.h
poppler/PDFDoc.h
+4
-4
No files found.
poppler/PDFDoc.cc
View file @
8d2a3e53
...
...
@@ -862,7 +862,7 @@ Hints *PDFDoc::getHints()
return
hints
;
}
int
PDFDoc
::
savePageAs
(
GooString
*
name
,
int
pageNo
)
int
PDFDoc
::
savePageAs
(
const
GooString
*
name
,
int
pageNo
)
{
FILE
*
f
;
OutStream
*
outStr
;
...
...
@@ -1026,7 +1026,7 @@ int PDFDoc::savePageAs(GooString *name, int pageNo)
return
errNone
;
}
int
PDFDoc
::
saveAs
(
GooString
*
name
,
PDFWriteMode
mode
)
{
int
PDFDoc
::
saveAs
(
const
GooString
*
name
,
PDFWriteMode
mode
)
{
FILE
*
f
;
OutStream
*
outStr
;
int
res
;
...
...
@@ -1058,7 +1058,7 @@ int PDFDoc::saveAs(OutStream *outStr, PDFWriteMode mode) {
return
errNone
;
}
int
PDFDoc
::
saveWithoutChangesAs
(
GooString
*
name
)
{
int
PDFDoc
::
saveWithoutChangesAs
(
const
GooString
*
name
)
{
FILE
*
f
;
OutStream
*
outStr
;
int
res
;
...
...
poppler/PDFDoc.h
View file @
8d2a3e53
...
...
@@ -14,7 +14,7 @@
// under GPL version 2 or later
//
// Copyright (C) 2005, 2006, 2008 Brad Hards <bradh@frogmouth.net>
// Copyright (C) 2005, 2009, 2014, 2015, 2017
,
201
8
Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2005, 2009, 2014, 2015, 2017
-
201
9
Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2008 Julien Rebetez <julienr@svn.gnome.org>
// Copyright (C) 2008 Pino Toscano <pino@kde.org>
// Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org>
...
...
@@ -316,13 +316,13 @@ public:
bool
getID
(
GooString
*
permanent_id
,
GooString
*
update_id
)
const
;
// Save one page with another name.
int
savePageAs
(
GooString
*
name
,
int
pageNo
);
int
savePageAs
(
const
GooString
*
name
,
int
pageNo
);
// Save this file with another name.
int
saveAs
(
GooString
*
name
,
PDFWriteMode
mode
=
writeStandard
);
int
saveAs
(
const
GooString
*
name
,
PDFWriteMode
mode
=
writeStandard
);
// Save this file in the given output stream.
int
saveAs
(
OutStream
*
outStr
,
PDFWriteMode
mode
=
writeStandard
);
// Save this file with another name without saving changes
int
saveWithoutChangesAs
(
GooString
*
name
);
int
saveWithoutChangesAs
(
const
GooString
*
name
);
// Save this file in the given output stream without saving changes
int
saveWithoutChangesAs
(
OutStream
*
outStr
);
...
...
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