From 7bce096afdf182216c9da4c94765e12662188c98 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Sun, 2 Jun 2019 12:26:28 +0200 Subject: Take StringView in more places We should work towards a pattern where we take StringView as function arguments, and store String as member, to push the String construction to the last possible moment. --- LibCore/CDirIterator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LibCore/CDirIterator.h') diff --git a/LibCore/CDirIterator.h b/LibCore/CDirIterator.h index 72920c2c1f..1d3395ef13 100644 --- a/LibCore/CDirIterator.h +++ b/LibCore/CDirIterator.h @@ -11,7 +11,7 @@ public: SkipDots = 0x1, }; - CDirIterator(const String& path, Flags = Flags::NoFlags); + CDirIterator(const StringView& path, Flags = Flags::NoFlags); ~CDirIterator(); bool has_error() const { return m_error != 0; } -- cgit v1.2.3