diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-08-18 01:36:43 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-08-28 02:03:29 +0200 |
commit | c2559c5b08bc5ce61c2d7c4d634db880204b5494 (patch) | |
tree | 44e436a468afb805f052380819d6992ff95381af /sc/source/filter/oox | |
parent | add ScOrcusSheet::get_table method (diff) | |
download | core-c2559c5b08bc5ce61c2d7c4d634db880204b5494.tar.gz core-c2559c5b08bc5ce61c2d7c4d634db880204b5494.zip |
make these types future proof
Our core already supports more than 32k sheets and we should not use
sal_Int16 anymore for sheets.
Change-Id: Ifeb321cba044b255ef2e7d34da0908c27877d6ae
Diffstat (limited to 'sc/source/filter/oox')
-rw-r--r-- | sc/source/filter/oox/worksheethelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx index 40a287444c91..4effbefaa5ca 100644 --- a/sc/source/filter/oox/worksheethelper.cxx +++ b/sc/source/filter/oox/worksheethelper.cxx @@ -219,7 +219,7 @@ public: /** Returns the type of this sheet. */ inline WorksheetType getSheetType() const { return meSheetType; } /** Returns the index of the current sheet. */ - inline sal_Int16 getSheetIndex() const { return maUsedArea.Sheet; } + inline sal_Int32 getSheetIndex() const { return maUsedArea.Sheet; } /** Returns the XSpreadsheet interface of the current sheet. */ inline const Reference< XSpreadsheet >& getSheet() const { return mxSheet; } @@ -1407,7 +1407,7 @@ WorksheetType WorksheetHelper::getSheetType() const return mrSheetGlob.getSheetType(); } -sal_Int16 WorksheetHelper::getSheetIndex() const +sal_Int32 WorksheetHelper::getSheetIndex() const { return mrSheetGlob.getSheetIndex(); } |