summaryrefslogtreecommitdiff
path: root/poppler/FileSpec.cc
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2018-04-06 23:08:15 +0200
committerAlbert Astals Cid <aacid@kde.org>2018-04-06 23:08:15 +0200
commitb4127fb1c45fe5dcabe3751f0b40029405224f49 (patch)
tree3b54d775f84676e9b68a72cc349e9bef7bb9ea31 /poppler/FileSpec.cc
parenta8e93f46df9feb7f7241826307af51befdb25d9e (diff)
Add some more const
const is always good :)
Diffstat (limited to 'poppler/FileSpec.cc')
-rw-r--r--poppler/FileSpec.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/poppler/FileSpec.cc b/poppler/FileSpec.cc
index a5cb947a..2628c363 100644
--- a/poppler/FileSpec.cc
+++ b/poppler/FileSpec.cc
@@ -7,7 +7,7 @@
//
// Copyright (C) 2008-2009 Carlos Garcia Campos <carlosgc@gnome.org>
// Copyright (C) 2009 Kovid Goyal <kovid@kovidgoyal.net>
-// Copyright (C) 2012, 2017 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2012, 2017, 2018 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2012 Hib Eris <hib@hiberis.nl>
// Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>. Work sponsored by the LiMux project of the city of Munich
//
@@ -28,7 +28,7 @@
#include "FileSpec.h"
-EmbFile::EmbFile(Object *efStream)
+EmbFile::EmbFile(const Object *efStream)
{
m_size = -1;
m_createDate = nullptr;
@@ -100,7 +100,7 @@ GBool EmbFile::save2(FILE *f) {
return gTrue;
}
-FileSpec::FileSpec(Object *fileSpecA)
+FileSpec::FileSpec(const Object *fileSpecA)
{
ok = gTrue;
fileName = nullptr;
@@ -172,7 +172,7 @@ GooString *FileSpec::getFileNameForPlatform()
return platformFileName;
}
-Object getFileSpecName (Object *fileSpec)
+Object getFileSpecName (const Object *fileSpec)
{
if (fileSpec->isString()) {
return fileSpec->copy();
@@ -203,7 +203,7 @@ Object getFileSpecName (Object *fileSpec)
return Object();
}
-Object getFileSpecNameForPlatform (Object *fileSpec)
+Object getFileSpecNameForPlatform (const Object *fileSpec)
{
if (fileSpec->isString()) {
return fileSpec->copy();