summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-10 13:51:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-06-11 06:48:29 +0000
commitd203948fdb780c7af5777fcc26ad88bac1bd714e (patch)
tree95458f3a290eed3d9a4ca13f28ec63f50490d7a6 /connectivity
parent754ade38ddb2e96187d00f3e621203cea34961fa (diff)
convert 'it.begin() == it.end()' to 'it.empty()'
Change-Id: I244a9eb6bce6b1c649653ec38ebb9a39f8b4c145 Reviewed-on: https://gerrit.libreoffice.org/16212 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FResultSet.cxx2
-rw-r--r--connectivity/source/drivers/mork/MResultSet.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx
index ce34129bacdd..e59c6d244228 100644
--- a/connectivity/source/drivers/file/FResultSet.cxx
+++ b/connectivity/source/drivers/file/FResultSet.cxx
@@ -1262,7 +1262,7 @@ bool OResultSet::OpenImpl()
if(!m_pTable)
{
const OSQLTables& xTabs = m_aSQLIterator.getTables();
- if ((xTabs.begin() == xTabs.end()) || !xTabs.begin()->second.is())
+ if (xTabs.empty() || !xTabs.begin()->second.is())
lcl_throwError(STR_QUERY_TOO_COMPLEX,*this);
if ( xTabs.size() > 1 || m_aSQLIterator.hasErrors() )
diff --git a/connectivity/source/drivers/mork/MResultSet.cxx b/connectivity/source/drivers/mork/MResultSet.cxx
index bea2b0f295ae..369b85114e11 100644
--- a/connectivity/source/drivers/mork/MResultSet.cxx
+++ b/connectivity/source/drivers/mork/MResultSet.cxx
@@ -1147,7 +1147,7 @@ void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLExcep
if(!m_pTable)
{
const OSQLTables& xTabs = m_pSQLIterator->getTables();
- if ((xTabs.begin() == xTabs.end()) || !xTabs.begin()->second.is())
+ if (xTabs.empty() || !xTabs.begin()->second.is())
m_pStatement->getOwnConnection()->throwSQLException( STR_QUERY_TOO_COMPLEX, *this );
m_pTable = static_cast< OTable* > ((xTabs.begin()->second).get());