diff options
Diffstat (limited to 'sc/source/filter/inc')
-rw-r--r-- | sc/source/filter/inc/workbookhelper.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/worksheethelper.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/xicontent.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/xistream.hxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/inc/workbookhelper.hxx b/sc/source/filter/inc/workbookhelper.hxx index 6f2eabfdab3f..afd36fadd83b 100644 --- a/sc/source/filter/inc/workbookhelper.hxx +++ b/sc/source/filter/inc/workbookhelper.hxx @@ -134,7 +134,7 @@ public: ScEditEngineDefaulter& getEditEngine() const; /** Returns a reference to the source/target spreadsheet document model. */ - css::uno::Reference< css::sheet::XSpreadsheetDocument > + const css::uno::Reference< css::sheet::XSpreadsheetDocument >& getDocument() const; /** Returns a reference to the specified spreadsheet in the document model. */ diff --git a/sc/source/filter/inc/worksheethelper.hxx b/sc/source/filter/inc/worksheethelper.hxx index 3929b180de57..bd859ea67051 100644 --- a/sc/source/filter/inc/worksheethelper.hxx +++ b/sc/source/filter/inc/worksheethelper.hxx @@ -204,7 +204,7 @@ public: /** Returns the absolute cell position in 1/100 mm. */ css::awt::Point getCellPosition( sal_Int32 nCol, sal_Int32 nRow ) const; /** Returns the size of the entire drawing page in 1/100 mm. */ - css::awt::Size getDrawPageSize() const; + const css::awt::Size& getDrawPageSize() const; /** Returns the buffer for cell contents and cell formatting. */ SheetDataBuffer& getSheetData() const; diff --git a/sc/source/filter/inc/xicontent.hxx b/sc/source/filter/inc/xicontent.hxx index 77a1068035ad..cb6b80850cdb 100644 --- a/sc/source/filter/inc/xicontent.hxx +++ b/sc/source/filter/inc/xicontent.hxx @@ -268,7 +268,7 @@ public: /** Reads the FILEPASS record, queries a password and sets decryption algorithm. @return Error code that may cause an error message after import. */ - static ErrCode ReadFilepass( XclImpStream& rStrm ); + static const ErrCode& ReadFilepass( XclImpStream& rStrm ); }; // Document protection ======================================================== diff --git a/sc/source/filter/inc/xistream.hxx b/sc/source/filter/inc/xistream.hxx index 9f20f3984b32..47e78e7ad4cb 100644 --- a/sc/source/filter/inc/xistream.hxx +++ b/sc/source/filter/inc/xistream.hxx @@ -47,7 +47,7 @@ public: virtual ~XclImpDecrypter() override; /** Returns the current error code of the decrypter. */ - ErrCode GetError() const { return mnError; } + const ErrCode& GetError() const { return mnError; } /** Returns true, if the decoder has been initialized correctly. */ bool IsValid() const { return mnError == ERRCODE_NONE; } |