Used single quotes for single character in string::find algorithm, more efficient

This commit is contained in:
asapelkin
2019-10-27 01:55:17 +03:00
committed by wmayer
parent e9814d9183
commit 8bc5b585c8
10 changed files with 11 additions and 11 deletions

View File

@@ -111,7 +111,7 @@ std::string Extension::name() const {
throw Base::RuntimeError("Extension::name: Extension type not set");
std::string temp(m_extensionType.getName());
std::string::size_type pos = temp.find_last_of(":");
std::string::size_type pos = temp.find_last_of(':');
if(pos != std::string::npos)
return temp.substr(pos+1);