mirror of
https://github.com/znc/znc.git
synced 2026-08-11 03:12:50 +02:00
Prefer TrimSuffix() over Right() + RightChomp()
This commit is contained in:
+1
-3
@@ -533,9 +533,7 @@ CString CDir::ChangeDir(const CString& sPath, const CString& sAdd, const CString
|
||||
sAddDir += "/";
|
||||
CString sCurDir;
|
||||
|
||||
if (sRet.Right(1) == "/") {
|
||||
sRet.RightChomp();
|
||||
}
|
||||
sRet.TrimSuffix("/");
|
||||
|
||||
for (unsigned int a = 0; a < sAddDir.size(); a++) {
|
||||
switch (sAddDir[a]) {
|
||||
|
||||
Reference in New Issue
Block a user