From bc8036dc62c43261a72c9fe52bf53792e4cfbdbf Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 10 Mar 2007 17:25:14 +0000 Subject: [PATCH] they are constant methods, so let them be 'const' svn path=/trunk/playground/graphics/okular/; revision=641248 --- core/document.cpp | 2 +- core/document.h | 2 +- core/page.cpp | 2 +- core/page.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/document.cpp b/core/document.cpp index 8883ed3ff..e9074d7aa 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -865,7 +865,7 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi } -QString Document::xmlFile() +QString Document::xmlFile() const { if ( d->m_generator ) { diff --git a/core/document.h b/core/document.h index 85791252d..26fb0bb2b 100644 --- a/core/document.h +++ b/core/document.h @@ -261,7 +261,7 @@ class OKULAR_EXPORT Document : public QObject * Returns the gui description file of the document that shall be merged with * Okulars menu/tool bar. */ - QString xmlFile(); + QString xmlFile() const; /** * Calling this method allows the document to add custom actions to the gui diff --git a/core/page.cpp b/core/page.cpp index 494b1e8e7..5ae607486 100644 --- a/core/page.cpp +++ b/core/page.cpp @@ -699,7 +699,7 @@ void Page::restoreLocalContents( const QDomNode & pageNode ) } } -void Page::saveLocalContents( QDomNode & parentNode, QDomDocument & document ) +void Page::saveLocalContents( QDomNode & parentNode, QDomDocument & document ) const { // only add a node if there is some stuff to write into if ( m_annotations.isEmpty() ) diff --git a/core/page.h b/core/page.h index 59a4b6d45..9ec04e11a 100644 --- a/core/page.h +++ b/core/page.h @@ -343,7 +343,7 @@ class OKULAR_EXPORT Page : public QObject /** * Saves the local contents (e.g. annotations) of the page. */ - void saveLocalContents( QDomNode & parentNode, QDomDocument & document ); + void saveLocalContents( QDomNode & parentNode, QDomDocument & document ) const; Q_SIGNALS: void rotationFinished( int page );