From f016e9777ef6c033e6ddd6c7d0244b38f2d63c86 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 30 May 2023 16:44:55 +0200 Subject: [PATCH] Added default parameter to split() --- update.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/update.h b/update.h index 83ee577..fb3864d 100644 --- a/update.h +++ b/update.h @@ -38,8 +38,7 @@ class Update : public QObject { bool updatePrinterConf(int nrOfTemplate, char const *fileToSendToDC); bool finishUpdate(bool finish); QStringList getOpenLines(); - QStringList split(QString line); - static constexpr QChar SEPARATOR = QChar(','); + QStringList split(QString line, QChar sep = ','); bool execUpdateScript(); public: