diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:25:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:20 +0200 |
commit | 6cb8d552eb3cffbdad47a6e00f4c4b55e9497171 (patch) | |
tree | 6931c0d198cb7d564b88ef315ead3195b693f9c3 /dbaccess/source/ui/misc/WCPage.cxx | |
parent | 4f4859b62ea5f72248a0daba88654a67108ebf6e (diff) |
loplugin:simplifybool
Change-Id: I77d80494ab99b4cd70f623798389f8dc35772d8a
Diffstat (limited to 'dbaccess/source/ui/misc/WCPage.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/WCPage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/misc/WCPage.cxx b/dbaccess/source/ui/misc/WCPage.cxx index b4056a4f354f..9856a3d8e185 100644 --- a/dbaccess/source/ui/misc/WCPage.cxx +++ b/dbaccess/source/ui/misc/WCPage.cxx @@ -150,7 +150,7 @@ IMPL_LINK( OCopyTable, KeyClickHdl, Button*, /*pButton*/ ) bool OCopyTable::LeavePage() { - m_pParent->m_bCreatePrimaryKeyColumn = (m_bPKeyAllowed && m_pCB_PrimaryColumn->IsEnabled()) ? m_pCB_PrimaryColumn->IsChecked() : false; + m_pParent->m_bCreatePrimaryKeyColumn = m_bPKeyAllowed && m_pCB_PrimaryColumn->IsEnabled() && m_pCB_PrimaryColumn->IsChecked(); m_pParent->m_aKeyName = m_pParent->m_bCreatePrimaryKeyColumn ? m_pEdKeyName->GetText() : OUString(); m_pParent->setUseHeaderLine( m_pCB_UseHeaderLine->IsChecked() ); |