Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-08-21 13:11:33 +0300
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>2021-09-08 11:54:00 +0300
commit2fe3a7947ef39ed4cdbdf61a6bc66aa8e4a254a7 (patch)
treece512b793114c4d949cc8fc2f8f526d2a35c876e /src/common
parentc7c05173b5a2af98778baf59fed8e81b53562be8 (diff)
endl has been deprecated
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/utility_unix.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/common/utility_unix.cpp b/src/common/utility_unix.cpp
index 010408395..087254e60 100644
--- a/src/common/utility_unix.cpp
+++ b/src/common/utility_unix.cpp
@@ -80,17 +80,17 @@ void setLaunchOnStartup_private(const QString &appName, const QString &guiName,
QTextStream ts(&iniFile);
ts.setCodec("UTF-8");
- ts << QLatin1String("[Desktop Entry]") << endl
- << QLatin1String("Name=") << guiName << endl
- << QLatin1String("GenericName=") << QLatin1String("File Synchronizer") << endl
- << QLatin1String("Exec=\"") << executablePath << "\" --background" << endl
- << QLatin1String("Terminal=") << "false" << endl
- << QLatin1String("Icon=") << APPLICATION_ICON_NAME << endl
- << QLatin1String("Categories=") << QLatin1String("Network") << endl
- << QLatin1String("Type=") << QLatin1String("Application") << endl
- << QLatin1String("StartupNotify=") << "false" << endl
- << QLatin1String("X-GNOME-Autostart-enabled=") << "true" << endl
- << QLatin1String("X-GNOME-Autostart-Delay=10") << endl;
+ ts << QLatin1String("[Desktop Entry]\n")
+ << QLatin1String("Name=") << guiName << QLatin1Char('\n')
+ << QLatin1String("GenericName=") << QLatin1String("File Synchronizer\n")
+ << QLatin1String("Exec=\"") << executablePath << "\" --background\n"
+ << QLatin1String("Terminal=") << "false\n"
+ << QLatin1String("Icon=") << APPLICATION_ICON_NAME << QLatin1Char('\n')
+ << QLatin1String("Categories=") << QLatin1String("Network\n")
+ << QLatin1String("Type=") << QLatin1String("Application\n")
+ << QLatin1String("StartupNotify=") << "false\n"
+ << QLatin1String("X-GNOME-Autostart-enabled=") << "true\n"
+ << QLatin1String("X-GNOME-Autostart-Delay=10") << Qt::endl;
} else {
if (!QFile::remove(desktopFileLocation)) {
qCWarning(lcUtility) << "Could not remove autostart desktop file";