diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-25 08:04:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-25 13:50:25 +0200 |
commit | 761e55d3683845606fcb94cfdf32450051b67a9d (patch) | |
tree | d38edef369f5e16311720258fc764f3450aacdda /dbaccess/source/ui/misc/TokenWriter.cxx | |
parent | 4dd65f861d3179538b58512a10c6c9482d85d0ee (diff) |
convert SQLExceptionInfo::TYPE to scoped enum
Change-Id: I2f21a742bc649fc42f89aebac2691c6054cd20d8
Diffstat (limited to 'dbaccess/source/ui/misc/TokenWriter.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index 1c4b3c596f43..b9780c6dbb68 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -262,7 +262,7 @@ void ODatabaseImportExport::initialize() SQLExceptionInfo aInfo = ::dbaui::createConnection( m_sDataSourceName, xDatabaseContext, m_xContext, xEvt, xConnection ); m_xConnection.reset( xConnection ); - if(aInfo.isValid() && aInfo.getType() == SQLExceptionInfo::SQL_EXCEPTION) + if(aInfo.isValid() && aInfo.getType() == SQLExceptionInfo::TYPE::SQLException) throw *static_cast<const SQLException*>(aInfo); } |