summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-10-28 00:13:29 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-10-28 07:55:59 +0100
commit5f0ddb2d2068a4388a7df12cd0e11f628b91e4c0 (patch)
tree2007c4a1f6c21a9f0d5a11aab60a10cd178d1d8b /sal
parent8522572cdd27f62a031bb07c9cf7f6f85e8453ad (diff)
tdf#120703 PVS: V547 Expression is always true/false
Change-Id: Ic92cc594979cac2edac04a085957398672a5dfcc Reviewed-on: https://gerrit.libreoffice.org/62450 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/textenc/convertisciidevangari.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sal/textenc/convertisciidevangari.cxx b/sal/textenc/convertisciidevangari.cxx
index 852b8c65a3ce..16c453fb8487 100644
--- a/sal/textenc/convertisciidevangari.cxx
+++ b/sal/textenc/convertisciidevangari.cxx
@@ -194,11 +194,9 @@ sal_Size IsciiDevanagariToUnicode::convert(
continue;
if (eAction == BAD_INPUT_STOP)
break;
- if (eAction == BAD_INPUT_NO_OUTPUT)
- {
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
- break;
- }
+ assert(eAction == BAD_INPUT_NO_OUTPUT);
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
+ break;
}
++nConverted;
if (bDouble)