summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-12 11:40:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-12 12:19:43 +0200
commit3dafed2edee8fe6e75b328f13d79014b611e7acf (patch)
treedbc47a283e0d7f2e4dfae35c7c2707093b45fa85 /sw/source/uibase/uiview
parent20c0aaf75f2923bb7a00dc628b88c878073b8e19 (diff)
-Werror,-Wundefined-bool-conversion
Change-Id: Iff8db4c82abeeed0789d7012223a846f1058c353
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r--sw/source/uibase/uiview/pview.cxx2
-rw-r--r--sw/source/uibase/uiview/view2.cxx6
-rw-r--r--sw/source/uibase/uiview/viewcoll.cxx2
-rw-r--r--sw/source/uibase/uiview/viewdlg.cxx2
-rw-r--r--sw/source/uibase/uiview/viewling.cxx6
-rw-r--r--sw/source/uibase/uiview/viewprt.cxx2
-rw-r--r--sw/source/uibase/uiview/viewtab.cxx4
7 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx
index f57bc069c5f8..074868c00c80 100644
--- a/sw/source/uibase/uiview/pview.cxx
+++ b/sw/source/uibase/uiview/pview.cxx
@@ -928,7 +928,7 @@ MOVEPAGE:
}
break;
default:
- OSL_ENSURE(!this, "wrong dispatcher");
+ OSL_ENSURE(false, "wrong dispatcher");
return;
}
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index ebd7db0b4305..fdc8b1d4e565 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -1252,7 +1252,7 @@ void SwView::Execute(SfxRequest &rReq)
break;
default:
- OSL_ENSURE(!this, "wrong dispatcher");
+ OSL_ENSURE(false, "wrong dispatcher");
return;
}
if(!bIgnore)
@@ -1518,7 +1518,7 @@ void SwView::StateStatusLine(SfxItemSet &rSet)
sStr = pTOX->GetTOXName();
else
{
- OSL_ENSURE( !this,
+ OSL_ENSURE( false,
"Unknown kind of section" );
sStr = pCurrSect->GetSectionName();
}
@@ -2146,7 +2146,7 @@ long SwView::InsertMedium( sal_uInt16 nSlotId, SfxMedium* pMedium, sal_Int16 nVe
case SID_INSERTDOC: bInsert = true; break;
default:
- OSL_ENSURE( !this, "unknown SlotId!" );
+ OSL_ENSURE( false, "unknown SlotId!" );
bInsert = true;
nSlotId = SID_INSERTDOC;
break;
diff --git a/sw/source/uibase/uiview/viewcoll.cxx b/sw/source/uibase/uiview/viewcoll.cxx
index f5de814bf074..0f155a47d89e 100644
--- a/sw/source/uibase/uiview/viewcoll.cxx
+++ b/sw/source/uibase/uiview/viewcoll.cxx
@@ -38,7 +38,7 @@ void SwView::ExecColl(SfxRequest &rReq)
{
case FN_SET_PAGE:
{
- OSL_ENSURE(!this, "Not implemented");
+ OSL_ENSURE(false, "Not implemented");
}
break;
case FN_SET_PAGE_STYLE:
diff --git a/sw/source/uibase/uiview/viewdlg.cxx b/sw/source/uibase/uiview/viewdlg.cxx
index a969481b7832..a308f9978f36 100644
--- a/sw/source/uibase/uiview/viewdlg.cxx
+++ b/sw/source/uibase/uiview/viewdlg.cxx
@@ -67,7 +67,7 @@ void SwView::ExecDlg(SfxRequest &rReq)
break;
default:
- OSL_ENSURE(!this, "wrong dispatcher");
+ OSL_ENSURE(false, "wrong dispatcher");
return;
}
}
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx
index ded1c7859b1c..caef90ad3959 100644
--- a/sw/source/uibase/uiview/viewling.cxx
+++ b/sw/source/uibase/uiview/viewling.cxx
@@ -213,7 +213,7 @@ void SwView::ExecLingu(SfxRequest &rReq)
HyphenateDocument();
break;
default:
- OSL_ENSURE(!this, "wrong Dispatcher");
+ OSL_ENSURE(false, "wrong Dispatcher");
return;
}
}
@@ -317,7 +317,7 @@ void SwView::SpellStart( SvxSpellArea eWhich,
}
break;
default:
- OSL_ENSURE( !this, "SpellStart with unknown Area" );
+ OSL_ENSURE( false, "SpellStart with unknown Area" );
}
m_pWrtShell->SpellStart( eStart, eEnde, eCurr, pConvArgs );
}
@@ -408,7 +408,7 @@ void SwView::HyphStart( SvxSpellArea eWhich )
m_pWrtShell->HyphStart( DOCPOS_OTHERSTART, DOCPOS_OTHEREND );
break;
default:
- OSL_ENSURE( !this, "HyphStart with unknown Area" );
+ OSL_ENSURE( false, "HyphStart with unknown Area" );
}
}
diff --git a/sw/source/uibase/uiview/viewprt.cxx b/sw/source/uibase/uiview/viewprt.cxx
index 4022476951f3..ac0b151d98b3 100644
--- a/sw/source/uibase/uiview/viewprt.cxx
+++ b/sw/source/uibase/uiview/viewprt.cxx
@@ -239,7 +239,7 @@ void SwView::ExecutePrint(SfxRequest& rReq)
return;
}
default:
- OSL_ENSURE(!this, "wrong dispatcher");
+ OSL_ENSURE(false, "wrong dispatcher");
return;
}
}
diff --git a/sw/source/uibase/uiview/viewtab.cxx b/sw/source/uibase/uiview/viewtab.cxx
index 3e7870af502e..f3da0ba3bd21 100644
--- a/sw/source/uibase/uiview/viewtab.cxx
+++ b/sw/source/uibase/uiview/viewtab.cxx
@@ -944,7 +944,7 @@ void SwView::ExecTabWin( SfxRequest& rReq )
break;
default:
- OSL_ENSURE( !this, "wrong SlotId");
+ OSL_ENSURE( false, "wrong SlotId");
}
rSh.EndAllAction();
@@ -1916,7 +1916,7 @@ void SwView::StateTabWin(SfxItemSet& rSet)
if( nNum > rCols.size() )
{
- OSL_ENSURE( !this, "wrong FmtCol is being edited!" );
+ OSL_ENSURE( false, "wrong FmtCol is being edited!" );
nNum = rCols.size();
}