diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-19 20:52:09 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-19 21:32:41 +0100 |
commit | f29b81d5217f3ef21bbc88131bdab5227a677511 (patch) | |
tree | 2fa9e9ddb0821d1f2cc0b0bceaea392deb177b20 /rbutil/rbutilqt/configure.cpp | |
parent | fb6840e57260b1da35924914d47731e06597afea (diff) | |
download | rockbox-f29b81d5217f3ef21bbc88131bdab5227a677511.tar.gz rockbox-f29b81d5217f3ef21bbc88131bdab5227a677511.zip |
rbutil: Avoid creating temporary object.
There's a static function for that.
Change-Id: I5d07d73368f20167bb45f5b0df510be6d4227109
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 066b9d7db7..6abbc06afd 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp | |||
@@ -171,7 +171,7 @@ void Config::accept() | |||
171 | errormsg += "<li>" + tr("No mountpoint given") + "</li>"; | 171 | errormsg += "<li>" + tr("No mountpoint given") + "</li>"; |
172 | error = true; | 172 | error = true; |
173 | } | 173 | } |
174 | else if(!QFileInfo(mountpoint).exists()) { | 174 | else if(!QFileInfo::exists(mountpoint)) { |
175 | errormsg += "<li>" + tr("Mountpoint does not exist") + "</li>"; | 175 | errormsg += "<li>" + tr("Mountpoint does not exist") + "</li>"; |
176 | error = true; | 176 | error = true; |
177 | } | 177 | } |