summaryrefslogtreecommitdiff
path: root/LibCore/CDirIterator.h
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-06-02 12:26:28 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-02 12:55:51 +0200
commit7bce096afdf182216c9da4c94765e12662188c98 (patch)
treeb29607bbf3ad02d151f7a4ad7ca920636aaefb74 /LibCore/CDirIterator.h
parentb55b6cd7fcaa8518e4901d4ec5bd0a9da5b28fc0 (diff)
downloadserenity-7bce096afdf182216c9da4c94765e12662188c98.zip
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.
Diffstat (limited to 'LibCore/CDirIterator.h')
-rw-r--r--LibCore/CDirIterator.h2
1 files changed, 1 insertions, 1 deletions
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; }