Commit 20ede4f6 authored by Heiko Becker's avatar Heiko Becker 🎸

Use QString::empty instead of comparing to QString()

parent 03f87811
......@@ -94,7 +94,7 @@ int main (int argc, char *argv[])
const int time=parser.value(timeOption).toInt();
if( time > 0 ) {
const QString name = parser.value(nameOption);
const Tea tea( name == QString() ? i18n( "Anonymous Tea" ) : name, time );
const Tea tea( name.isEmpty() ? i18n( "Anonymous Tea" ) : name, time );
toplevel->runTea( tea );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment