diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-04-30 16:55:26 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-04-30 12:21:09 +0200 |
commit | 29016704108165371da9e2392d6ee28939ca46ce (patch) | |
tree | c09ca3cfbc9f1f4a0a645cbb91dbb11c86215c8f /svgio/source/svgreader/svgtools.cxx | |
parent | 91daf2c6b1661f27df6ee41f7395ed0fcb677cf0 (diff) |
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@gmail.com>
Diffstat (limited to 'svgio/source/svgreader/svgtools.cxx')
-rw-r--r-- | svgio/source/svgreader/svgtools.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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++; } } |