diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-12 11:40:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-12 12:19:43 +0200 |
commit | 3dafed2edee8fe6e75b328f13d79014b611e7acf (patch) | |
tree | dbc47a283e0d7f2e4dfae35c7c2707093b45fa85 /sw/source/ui | |
parent | 20c0aaf75f2923bb7a00dc628b88c878073b8e19 (diff) |
-Werror,-Wundefined-bool-conversion
Change-Id: Iff8db4c82abeeed0789d7012223a846f1058c353
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/fmtui/tmpdlg.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index bb6c6819566f..14e5731a38f2 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -327,7 +327,7 @@ SwInsertDBColAutoPilot::SwInsertDBColAutoPilot( SwView& rView, } if( !aDBColumns.insert( pNew ).second ) { - OSL_ENSURE( !this, "Spaltenname mehrfach vergeben?" ); + OSL_ENSURE( false, "Spaltenname mehrfach vergeben?" ); delete pNew; } } @@ -994,19 +994,19 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection, if (it != aDBColumns.end()) aColFlds.push_back(*it); else { - OSL_ENSURE( !this, "database column not found" ); + OSL_ENSURE( false, "database column not found" ); } } if( static_cast<size_t>(nCols) != aColFlds.size() ) { - OSL_ENSURE( !this, "not all database columns found" ); + OSL_ENSURE( false, "not all database columns found" ); nCols = static_cast<sal_Int32>(aColFlds.size()); } if(!nRows || !nCols) { - OSL_ENSURE( !this, "wrong parameters" ); + OSL_ENSURE( false, "wrong parameters" ); break; } diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx index 4d73684c86ea..5ddb5ce8859d 100644 --- a/sw/source/ui/fmtui/tmpdlg.cxx +++ b/sw/source/ui/fmtui/tmpdlg.cxx @@ -330,7 +330,7 @@ SwTemplateDlg::SwTemplateDlg(Window* pParent, break; default: - OSL_ENSURE(!this, "wrong family"); + OSL_ENSURE(false, "wrong family"); } if (!sPage.isEmpty()) |