diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-24 09:54:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-25 08:40:00 +0200 |
commit | bd4526b557fe787b3826ddf46bf8009fb45e05e6 (patch) | |
tree | 7691ba71b34e9447cf1647641469873715bf883b /include | |
parent | 492a8c34cc71c7becb59e90ffde71b9072ebab2c (diff) |
convert GridRowStatus to scoped enum
Change-Id: I5a3808c563ba09ed734f020f37ffeb5790000874
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/gridctrl.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index d8f1ad0b1e67..605638ca64b8 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -49,12 +49,12 @@ namespace svxform class DataColumn; } -enum GridRowStatus +enum class GridRowStatus { - GRS_CLEAN, - GRS_MODIFIED, - GRS_DELETED, - GRS_INVALID + Clean, + Modified, + Deleted, + Invalid }; @@ -71,7 +71,7 @@ class DbGridRow : public SvRefBase // row is no longer valid // is removed on the next positioning public: - DbGridRow():m_eStatus(GRS_CLEAN), m_bIsNew(true) { } + DbGridRow():m_eStatus(GridRowStatus::Clean), m_bIsNew(true) { } DbGridRow(CursorWrapper* pCur, bool bPaintCursor); void SetState(CursorWrapper* pCur, bool bPaintCursor); @@ -87,8 +87,8 @@ public: const css::uno::Any& GetBookmark() const { return m_aBookmark; } - bool IsValid() const { return m_eStatus == GRS_CLEAN || m_eStatus == GRS_MODIFIED; } - bool IsModified() const { return m_eStatus == GRS_MODIFIED; } + bool IsValid() const { return m_eStatus == GridRowStatus::Clean || m_eStatus == GridRowStatus::Modified; } + bool IsModified() const { return m_eStatus == GridRowStatus::Modified; } }; typedef tools::SvRef<DbGridRow> DbGridRowRef; |