diff options
-rw-r--r-- | vcl/source/window/builder.cxx | 5 | ||||
-rw-r--r-- | vcl/source/window/layout.cxx | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 1f1cca6688c8..3215c89f3e2c 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -94,6 +94,11 @@ static bool toBool(std::string_view rValue) return (!rValue.empty() && (rValue[0] == 't' || rValue[0] == 'T' || rValue[0] == '1')); } +bool toBool(std::u16string_view rValue) +{ + return (!rValue.empty() && (rValue[0] == 't' || rValue[0] == 'T' || rValue[0] == '1')); +} + namespace { OUString mapStockToImageResource(std::u16string_view sType) diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 988b470ca31f..9d0dc28b4f91 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -1434,11 +1434,6 @@ void VclGrid::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) rJsonWriter.put("type", "grid"); } -bool toBool(std::u16string_view rValue) -{ - return (!rValue.empty() && (rValue[0] == 't' || rValue[0] == 'T' || rValue[0] == '1')); -} - bool VclGrid::set_property(const OUString &rKey, const OUString &rValue) { if (rKey == "row-spacing") |