summaryrefslogtreecommitdiffstats
path: root/vcl/unx/generic/printer/ppdparser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/printer/ppdparser.cxx')
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index ba68e1ef011e..8191c98364e1 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <comphelper/string.hxx>
+#include <o3tl/string_view.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <ppdparser.hxx>
#include <strhelper.hxx>
@@ -1526,11 +1527,11 @@ void PPDParser::getResolutionFromString(std::u16string_view rString,
const size_t nPos {rString.find( 'x' )};
if( nPos != std::u16string_view::npos )
{
- rXRes = comphelper::string::toInt32(rString.substr( 0, nPos ));
- rYRes = comphelper::string::toInt32(rString.substr(nPos+1, nDPIPos - nPos - 1));
+ rXRes = o3tl::toInt32(rString.substr( 0, nPos ));
+ rYRes = o3tl::toInt32(rString.substr(nPos+1, nDPIPos - nPos - 1));
}
else
- rXRes = rYRes = comphelper::string::toInt32(rString.substr( 0, nDPIPos ));
+ rXRes = rYRes = o3tl::toInt32(rString.substr( 0, nDPIPos ));
}
}