diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-06-06 17:21:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-06-06 17:21:27 +0200 |
commit | fb835e0e8a99caeb7dbb79bf6d935c97d291114c (patch) | |
tree | 246b189d05a1a9e889a37da89ffcefc96d04998a /dbaccess | |
parent | b6a91e6d30e2a15880638d570d4c7d1e6c4a1853 (diff) |
-Werror=sign-compare
(ListBox::GetSelectEntryPos returns sal_uInt16)
Change-Id: Ia6e4bf4354523f5112ee3ade1d3da6db0f9ab2c4
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/generalpage.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx index 037391641dfd..e2b325a832b3 100644 --- a/dbaccess/source/ui/dlg/generalpage.cxx +++ b/dbaccess/source/ui/dlg/generalpage.cxx @@ -328,8 +328,8 @@ namespace dbaui IMPL_LINK( OGeneralPage, OnDatasourceTypeSelected, ListBox*, _pBox ) { // get the type from the entry data - sal_Int16 nSelected = _pBox->GetSelectEntryPos(); - if (nSelected < 0 || nSelected >= m_aURLPrefixes.size() ) + sal_uInt16 nSelected = _pBox->GetSelectEntryPos(); + if (nSelected >= m_aURLPrefixes.size() ) { SAL_WARN("dbaui.OGeneralPage", "Got out-of-range value '" << nSelected << "' from the DatasourceType selection ListBox's GetSelectEntryPos(): " << ((nSelected < 0) ? "negative" : "no corresponding URL prefix") ); return 0L; |