diff options
Diffstat (limited to 'connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx')
-rw-r--r-- | connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx index 969a1f1e1f4f..ffc0feb75a8b 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx @@ -29,6 +29,7 @@ #include <cppuhelper/implementationentry.hxx> #include <cppuhelper/supportsservice.hxx> #include <connectivity/dbexception.hxx> +#include <o3tl/unreachable.hxx> #include <TConnection.hxx> using namespace connectivity; @@ -169,10 +170,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& colum } ::dbtools::throwInvalidColumnException( columnName, *this ); -#if !(defined(_MSC_VER) && defined(ENABLE_LTO)) - assert(false); - return 0; // Never reached -#endif + O3TL_UNREACHABLE; } void ODatabaseMetaDataResultSet::checkIndex(sal_Int32 columnIndex ) |