diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 18:06:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 18:11:10 +0100 |
commit | 3bf277a044ded4e117020b42677bf45a307ffb76 (patch) | |
tree | 8c0e17da43d781d4380fdddb73668b99d811d56d /chart2 | |
parent | 0d29aab156fb2eaf780fd152f0923b4850684846 (diff) |
bool improvements
Change-Id: Ia30628e093a885165b2d8a7b1a999c0dc7ee65cd
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ControllerCommandDispatch.cxx | 8 | ||||
-rw-r--r-- | chart2/source/view/inc/VSeriesPlotter.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx index 85df6635cb1a..d88a263af8fb 100644 --- a/chart2/source/controller/main/ControllerCommandDispatch.cxx +++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx @@ -78,10 +78,10 @@ namespace impl { /// Constants for moving the series. -enum EnumForward{ - MOVE_SERIES_FORWARD = true, - MOVE_SERIES_BACKWARD = false -}; +namespace { + static bool const MOVE_SERIES_FORWARD = true; + static bool const MOVE_SERIES_BACKWARD = false; +} /** Represents the current state of the controller (needed for issue 63017). diff --git a/chart2/source/view/inc/VSeriesPlotter.hxx b/chart2/source/view/inc/VSeriesPlotter.hxx index 6a087de5ecbc..a4b0fb68e0ab 100644 --- a/chart2/source/view/inc/VSeriesPlotter.hxx +++ b/chart2/source/view/inc/VSeriesPlotter.hxx @@ -51,7 +51,7 @@ public: { m_aNumberFormatMap[tFullAxisIndex(nDimIndex,nAxisIndex)] = nFormatKey; } - sal_Int32 hasFormat( sal_Int32 nDimIndex, sal_Int32 nAxisIndex ) const + bool hasFormat( sal_Int32 nDimIndex, sal_Int32 nAxisIndex ) const { return (m_aNumberFormatMap.find(tFullAxisIndex(nDimIndex,nAxisIndex)) !=m_aNumberFormatMap.end()); } |