[Libreoffice-commits] core.git: svgio/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 30 10:21:47 UTC 2021
svgio/source/svgreader/svgtools.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 29016704108165371da9e2392d6ee28939ca46ce
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Fri Apr 30 16:55:26 2021 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Apr 30 12:21:09 2021 +0200
svgio: change some OSL_ENSUREs to (std) assert
Change-Id: Ie7e7e6276e5a528fb99a6dfda00e9826c5245fb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114899
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx
index a4a7b897faa4..6a7f04f12055 100644
--- a/svgio/source/svgreader/svgtools.cxx
+++ b/svgio/source/svgreader/svgtools.cxx
@@ -180,14 +180,14 @@ namespace svgio::svgreader
}
default:
{
- OSL_ENSURE(false, "Do not use with percentage! ");
+ assert(false && "Do not use with percentage!");
return 0.0;
}
}
}
/// not set
- OSL_ENSURE(false, "SvgNumber not set (!)");
+ assert(false && "SvgNumber not set (!)");
return 0.0;
}
@@ -263,7 +263,7 @@ namespace svgio::svgreader
}
/// not set
- OSL_ENSURE(false, "SvgNumber not set (!)");
+ assert(false && "SvgNumber not set (!)");
return 0.0;
}
@@ -1183,7 +1183,7 @@ namespace svgio::svgreader
if(nInitPos == nPos)
{
- OSL_ENSURE(false, "Could not interpret on current position (!)");
+ assert(false && "Could not interpret on current position (!)");
nPos++;
}
}
@@ -1386,7 +1386,7 @@ namespace svgio::svgreader
if(nInitPos == nPos)
{
- OSL_ENSURE(false, "Could not interpret on current position (!)");
+ assert(false && "Could not interpret on current position (!)");
nPos++;
}
}
More information about the Libreoffice-commits
mailing list