diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-18 12:46:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-18 12:46:35 +0200 |
commit | c91b103930f4f441ab333d6f3026d6c19d4b4d0f (patch) | |
tree | b3bb0edd19ebf20bdca3c9b3605cec986d2e650f /dbaccess/source/ui/dlg | |
parent | 1c73135493e844c04446f58e7001920381787317 (diff) |
convert SvButtonState to scoped enum
Change-Id: I601f9e2fe33e85cf3f7dc52ee20d68202bd2b09d
Diffstat (limited to 'dbaccess/source/ui/dlg')
-rw-r--r-- | dbaccess/source/ui/dlg/tablespage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx index eae9b041da15..7c1686c62450 100644 --- a/dbaccess/source/ui/dlg/tablespage.cxx +++ b/dbaccess/source/ui/dlg/tablespage.cxx @@ -197,7 +197,7 @@ namespace dbaui SvTreeListEntry* pEntry = m_pTablesList->GetEntryPosByName(sName, pSchema ? pSchema : (pCatalog ? pCatalog : pRootEntry) ); if (pEntry) - m_pTablesList->SetCheckButtonState(pEntry, SV_BUTTON_CHECKED); + m_pTablesList->SetCheckButtonState(pEntry, SvButtonState::Checked); } m_pTablesList->CheckButtons(); } @@ -372,7 +372,7 @@ namespace dbaui void OTableSubscriptionPage::CheckAll( bool _bCheck ) { - SvButtonState eState = _bCheck ? SV_BUTTON_CHECKED : SV_BUTTON_UNCHECKED; + SvButtonState eState = _bCheck ? SvButtonState::Checked : SvButtonState::Unchecked; SvTreeListEntry* pEntry = m_pTablesList->First(); while (pEntry) { @@ -455,7 +455,7 @@ namespace dbaui SvTreeListEntry* pSchema = nullptr; SvTreeListEntry* pCatalog = nullptr; - if (m_pTablesList->GetCheckButtonState(pEntry) == SV_BUTTON_CHECKED && !m_pTablesList->GetModel()->HasChildren(pEntry)) + if (m_pTablesList->GetCheckButtonState(pEntry) == SvButtonState::Checked && !m_pTablesList->GetModel()->HasChildren(pEntry)) { // checked and a leaf, which means it's no catalog, no schema, but a real table OUString sCatalog; if(m_pTablesList->GetModel()->HasParent(pEntry)) |