From dd452e66a84e907b2ec25c169d995d34bdb6af0b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 27 Dec 2018 20:32:02 +0200 Subject: [PATCH] Technically the member function 'VCommandLine::OptTiledPageOrientation' can be const. --HG-- branch : develop --- src/app/valentina/core/vcmdexport.cpp | 2 +- src/app/valentina/core/vcmdexport.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/core/vcmdexport.cpp b/src/app/valentina/core/vcmdexport.cpp index c01dbeb0c..4946e7fa0 100644 --- a/src/app/valentina/core/vcmdexport.cpp +++ b/src/app/valentina/core/vcmdexport.cpp @@ -604,7 +604,7 @@ VAbstractLayoutDialog::PaperSizeTemplate VCommandLine::OptTiledPaperSize() const } //--------------------------------------------------------------------------------------------------------------------- -PageOrientation VCommandLine::OptTiledPageOrientation() +PageOrientation VCommandLine::OptTiledPageOrientation() const { return static_cast(not IsOptionSet(LONG_OPTION_TILED_PDF_LANDSCAPE)); } diff --git a/src/app/valentina/core/vcmdexport.h b/src/app/valentina/core/vcmdexport.h index 89e447f93..c6aefe41e 100644 --- a/src/app/valentina/core/vcmdexport.h +++ b/src/app/valentina/core/vcmdexport.h @@ -134,7 +134,7 @@ public: QMarginsF TiledPageMargins() const; VAbstractLayoutDialog::PaperSizeTemplate OptTiledPaperSize() const; - PageOrientation OptTiledPageOrientation(); + PageOrientation OptTiledPageOrientation() const; protected: