From 761e55d3683845606fcb94cfdf32450051b67a9d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Feb 2016 08:04:03 +0200 Subject: convert SQLExceptionInfo::TYPE to scoped enum Change-Id: I2f21a742bc649fc42f89aebac2691c6054cd20d8 --- include/connectivity/dbexception.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/connectivity') diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx index 58614d66947c..83caae02e9ef 100644 --- a/include/connectivity/dbexception.hxx +++ b/include/connectivity/dbexception.hxx @@ -61,7 +61,7 @@ enum OOoBaseErrorCode class OOO_DLLPUBLIC_DBTOOLS SQLExceptionInfo { public: - enum TYPE { SQL_EXCEPTION, SQL_WARNING, SQL_CONTEXT, UNDEFINED }; + enum class TYPE { SQLException, SQLWarning, SQLContext, Undefined }; private: css::uno::Any m_aContent; @@ -128,7 +128,7 @@ public: bool isKindOf(TYPE _eType) const; // not just a simple comparisation ! e.g. getType() == SQL_CONTEXT implies isKindOf(SQL_EXCEPTION) == sal_True ! - bool isValid() const { return m_eType != UNDEFINED; } + bool isValid() const { return m_eType != TYPE::Undefined; } TYPE getType() const { return m_eType; } operator const css::sdbc::SQLException* () const; @@ -139,7 +139,7 @@ public: void clear() { m_aContent.clear(); - m_eType = UNDEFINED; + m_eType = TYPE::Undefined; } protected: -- cgit