summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /sc/inc/document.hxx
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index c00f55efd632..9d032d545263 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -553,8 +553,8 @@ public:
SC_DLLPUBLIC const ScRangeData* GetRangeAtBlock( const ScRange& rBlock, OUString* pName=NULL ) const;
bool HasPivotTable() const;
- SC_DLLPUBLIC ScDPCollection* GetDPCollection();
- SC_DLLPUBLIC const ScDPCollection* GetDPCollection() const;
+ SC_DLLPUBLIC ScDPCollection* GetDPCollection();
+ const ScDPCollection* GetDPCollection() const { return pDPCollection; }
SC_DLLPUBLIC ScDPObject* GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
ScDPObject* GetDPAtBlock( const ScRange& rBlock ) const;
@@ -769,7 +769,7 @@ public:
void BeginUnoRefUndo();
bool HasUnoRefUndo() const { return ( pUnoRefUndoList != NULL ); }
ScUnoRefList* EndUnoRefUndo(); // must be deleted by caller!
- sal_Int64 GetNewUnoId();
+ sal_Int64 GetNewUnoId() { return ++nUnoObjectId; }
void AddUnoRefChange( sal_Int64 nId, const ScRangeList& rOldRanges );
bool IsChart( const SdrObject* pObject );
@@ -1034,7 +1034,7 @@ public:
void SetPreviewFont( SfxItemSet* pFontSet );
SfxItemSet* GetPreviewFont() { return pPreviewFont; }
SfxItemSet* GetPreviewFont( SCCOL nCol, SCROW nRow, SCTAB nTab );
- const ScMarkData GetPreviewSelection();
+ const ScMarkData& GetPreviewSelection() const { return maPreviewSelection; }
void SetPreviewSelection( ScMarkData& rSel );
ScStyleSheet* GetPreviewCellStyle() { return pPreviewCellStyle; }
ScStyleSheet* GetPreviewCellStyle( SCCOL nCol, SCROW nRow, SCTAB nTab );
@@ -1410,7 +1410,7 @@ public:
SC_DLLPUBLIC ScConditionalFormatList* GetCondFormList( SCTAB nTab ) const;
- const ScValidationDataList* GetValidationList() const;
+ const ScValidationDataList* GetValidationList() const { return pValidationList;}
ScValidationDataList* GetValidationList() { return pValidationList;}
SC_DLLPUBLIC void ApplyAttr( SCCOL nCol, SCROW nRow, SCTAB nTab,
@@ -2092,7 +2092,7 @@ public:
#endif
void SetCalcConfig( const ScCalcConfig& rConfig );
- const ScCalcConfig& GetCalcConfig() const;
+ const ScCalcConfig& GetCalcConfig() const { return maCalcConfig; }
private: