Utils: Change SmallString::toView to SmallString::toStringView

This improves the readability of the code.

Change-Id: Ifccbaaa6003636848ea48e00d92abc44f5c2e0f1
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Marco Bubke
2018-01-17 11:52:18 +01:00
parent b3bed4c306
commit a572b2db6a
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ public:
return QString::fromUtf8(data(), int(size()));
}
SmallStringView toView() const
SmallStringView toStringView() const
{
return SmallStringView(data(), size());
}

View File

@@ -1687,7 +1687,7 @@ TEST(SmallString, ToView)
{
SmallString text = "text";
auto view = text.toView();
auto view = text.toStringView();
ASSERT_THAT(view, "text");