summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-09-20 16:12:55 +0300
committerTor Lillqvist <tml@collabora.com>2015-09-20 16:17:16 +0300
commit0212c7195918675b763cb8f02cee646f78497589 (patch)
tree56c4bd15a22b1d60a941a45a00fc645eac98c2ab /editeng
parent14c44a1e4825911e9330f6ba961d4254cf6bff9b (diff)
WaE: implicit conversion of literal of type 'int' to 'bool'
Change-Id: I9b81f552d24c75eb08e383868293909d584850d2
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit3.cxx4
-rw-r--r--editeng/source/outliner/overflowingtxt.cxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index aef05f567642..0427a2338898 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -4670,9 +4670,7 @@ void ImpEditEngine::ImplUpdateOverflowingLineNum(sal_uInt32 nPaperHeight,
}
}
- assert(0); // You should never get here
-
+ assert(false && "You should never get here");
}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/source/outliner/overflowingtxt.cxx b/editeng/source/outliner/overflowingtxt.cxx
index 0993e3751523..2b5b13a07583 100644
--- a/editeng/source/outliner/overflowingtxt.cxx
+++ b/editeng/source/outliner/overflowingtxt.cxx
@@ -129,7 +129,7 @@ OverflowingText::OverflowingText(TranferableText xOverflowingContent) :
ESelection OverflowingText::GetInsertionPointSel() const
{
- assert(0);
+ assert(false && "You should never get here");
return getLastPositionSel(NULL);
}