Doc: Fix typo in snippet
Change-Id: I1a93a5f58bc5edc07c5449f20eb2444ebc252a61 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> (cherry picked from commit 3e1f73aa30761533b5a897ee0ee6d7ce33f5b4bb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
861664b9d9
commit
661ab8398e
@ -48,7 +48,7 @@ for (const auto &dirEntry : QDirListing(u"/etc"_s, ItFlag::Recursive)) {
|
||||
if (dirEntry.fileName().endsWith(u".conf")) { /* ... */ }
|
||||
|
||||
// This works, but might be potentially slower, since it has to construct a
|
||||
// QFileInfo, whereas (depending on the implemnetation) the fileName could
|
||||
// QFileInfo, whereas (depending on the implementation) the fileName could
|
||||
// be known already
|
||||
if (dirEntry.fileInfo().fileName().endsWith(u".conf")) { /* ... */ }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user