Use c++11 to remove last char from a string

Thanks Scott.
This commit is contained in:
Kornel Benko 2020-04-19 08:59:54 +02:00
parent 333e023e82
commit 478a303f4a

View File

@ -672,7 +672,7 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
if (lexrc.next()) {
string userdir = package().user_support().absFileName();
if (userdir.back() == '/')
userdir = userdir.substr(0, userdir.size()-1);
userdir.pop_back();
lyxpipes = subst(os::internal_path(lexrc.getString()), "$$UserDir",
userdir);
}