Skip to content

Commit

Permalink
properly use QStringView to avoid copies
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Sep 17, 2023
1 parent 9e137b6 commit 2aeb821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csync/csync_exclude.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ CSYNC_EXCLUDE_TYPE ExcludedFiles::traversalPatternMatch(const QString &path, Ite
QStringView bnameStr(path);
int lastSlash = path.lastIndexOf(QLatin1Char('/'));
if (lastSlash >= 0) {
bnameStr = path.mid(lastSlash + 1);
bnameStr = bnameStr.mid(lastSlash + 1);
}

QString basePath(_localPath + path);
Expand Down

0 comments on commit 2aeb821

Please sign in to comment.