summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/connectivity/IParseContext.hxx1
-rw-r--r--svx/source/form/ParseContext.cxx2
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;
}