summaryrefslogtreecommitdiff
path: root/cpp/poppler-image.cpp
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-11-29 15:45:37 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-11-29 15:51:02 +0100
commit42efcb738cd5924215249c55dd2d0ff7f517d6b5 (patch)
treeb140d1b982744f76bcc7bc1e10977b76fe70690e /cpp/poppler-image.cpp
parentec2b036e0029e94183a87471c83577336bbaedda (diff)
Enable readability-inconsistent-declaration-parameter-name
Diffstat (limited to 'cpp/poppler-image.cpp')
-rw-r--r--cpp/poppler-image.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/poppler-image.cpp b/cpp/poppler-image.cpp
index daf10f02..745bf221 100644
--- a/cpp/poppler-image.cpp
+++ b/cpp/poppler-image.cpp
@@ -225,8 +225,8 @@ image::image(char *idata, int iwidth, int iheight, image::format_enum iformat)
/**
Copy constructor.
*/
-image::image(const image &pt)
- : d(pt.d)
+image::image(const image &img)
+ : d(img.d)
{
if (d) {
++d->ref;
@@ -496,16 +496,16 @@ std::vector<std::string> image::supported_image_formats()
/**
Assignment operator.
*/
-image& image::operator=(const image &pt)
+image& image::operator=(const image &img)
{
- if (this == &pt)
+ if (this == &img)
return *this;
- if (pt.d) {
- ++pt.d->ref;
+ if (img.d) {
+ ++img.d->ref;
}
image_private *old_d = d;
- d = pt.d;
+ d = img.d;
if (old_d && !--old_d->ref) {
delete old_d;
}