diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-16 13:39:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-17 07:52:09 +0200 |
commit | 1920061bb2f35df638a638ffebae25245e6ec450 (patch) | |
tree | 52836ddb42f4aed479f0ccd99fa25d067d107229 | |
parent | d386abfb09e4add6817cfb3fc8fcb259a2b69705 (diff) |
remove unused None from ErrorCode
Change-Id: Iab5bf1a34fa07c851067fe30df875e821583038b
-rw-r--r-- | include/connectivity/IParseContext.hxx | 1 | ||||
-rw-r--r-- | svx/source/form/ParseContext.cxx | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/connectivity/IParseContext.hxx b/include/connectivity/IParseContext.hxx index 53c09f5e6bb2..7277f421cfdd 100644 --- a/include/connectivity/IParseContext.hxx +++ b/include/connectivity/IParseContext.hxx @@ -35,7 +35,6 @@ namespace connectivity public: enum class ErrorCode { - None = 0, General, // "Syntax error in SQL expression" ValueNoLike, // "The value #1 can not be used with LIKE." FieldNoLike, // "LIKE can not be used with this field." diff --git a/svx/source/form/ParseContext.cxx b/svx/source/form/ParseContext.cxx index b02413e1496c..c5a2654750ba 100644 --- a/svx/source/form/ParseContext.cxx +++ b/svx/source/form/ParseContext.cxx @@ -68,7 +68,7 @@ OUString OSystemParseContext::getErrorMessage(ErrorCode _eCode) const case ErrorCode::InvalidColumn: aMsg = SVX_RESSTR(RID_STR_SVT_SQL_SYNTAX_COLUMN); break; case ErrorCode::InvalidTableExist: aMsg = SVX_RESSTR(RID_STR_SVT_SQL_SYNTAX_TABLE_EXISTS); break; case ErrorCode::InvalidQueryExist: aMsg = SVX_RESSTR(RID_STR_SVT_SQL_SYNTAX_QUERY_EXISTS); break; - case ErrorCode::None: break; + default: break; } return aMsg; } |