bool improvements

Change-Id: Ia30628e093a885165b2d8a7b1a999c0dc7ee65cd
This commit is contained in:
Stephan Bergmann
2014-01-14 18:06:51 +01:00
parent 0d29aab156
commit 3bf277a044
2 changed files with 5 additions and 5 deletions

View File

@@ -78,10 +78,10 @@ namespace impl
{ {
/// Constants for moving the series. /// Constants for moving the series.
enum EnumForward{ namespace {
MOVE_SERIES_FORWARD = true, static bool const MOVE_SERIES_FORWARD = true;
MOVE_SERIES_BACKWARD = false static bool const MOVE_SERIES_BACKWARD = false;
}; }
/** Represents the current state of the controller (needed for issue 63017). /** Represents the current state of the controller (needed for issue 63017).

View File

@@ -51,7 +51,7 @@ public:
{ {
m_aNumberFormatMap[tFullAxisIndex(nDimIndex,nAxisIndex)] = nFormatKey; 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()); return (m_aNumberFormatMap.find(tFullAxisIndex(nDimIndex,nAxisIndex)) !=m_aNumberFormatMap.end());
} }