From: Dominik Schmidt Date: Mon, 14 Dec 2020 13:47:45 +0000 (+0100) Subject: Fix style X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~446^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=635d2b2da28336557b910d1bc6dbdf6a649c637b;p=nextcloud-desktop.git Fix style --- diff --git a/test/testutility.cpp b/test/testutility.cpp index 38acb0ca2..aa21ed788 100644 --- a/test/testutility.cpp +++ b/test/testutility.cpp @@ -114,22 +114,22 @@ private slots: void testVersionOfInstalledBinary() { - if( isLinux() ) { - if ( qgetenv("DISPLAY").isEmpty() ) { + if (isLinux()) { + if (qgetenv("DISPLAY").isEmpty()) { // Current requires an X-Server return; } // pass the binary name owncloud to the next call. This brakes branding, // but branding is not supposed to work with this. - QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH+QLatin1String("/nextcloud")); - qDebug() << "Version of installed Nextcloud: " << ver; - QVERIFY( !ver.isEmpty()); - - QRegExp rx( R"(Nextcloud version \d+\.\d+\.\d+.*)" ); - QVERIFY( rx.exactMatch(ver)); - } else { - QVERIFY( versionOfInstalledBinary().isEmpty()); - } + QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH + QLatin1String("/nextcloud")); + qDebug() << "Version of installed Nextcloud: " << ver; + QVERIFY(!ver.isEmpty()); + + QRegExp rx(R"(Nextcloud version \d+\.\d+\.\d+.*)"); + QVERIFY(rx.exactMatch(ver)); + } else { + QVERIFY(versionOfInstalledBinary().isEmpty()); + } } void testTimeAgo()