From 22e477caa88feadc4ce3105676cede1dcc27dba0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 30 Apr 2021 11:22:51 +0200 Subject: const --- src/pwgui/pwgui.cpp | 4 ++-- src/pwgui/pwgui.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/pwgui/pwgui.cpp b/src/pwgui/pwgui.cpp index b92bab4..2e51214 100644 --- a/src/pwgui/pwgui.cpp +++ b/src/pwgui/pwgui.cpp @@ -8,7 +8,7 @@ #define BUFLEN 400 // ____________________________________________________________________________ -PwGui::PwGui(int pfd, char *user, QWidget *parent) : +PwGui::PwGui(int pfd, const char *user, QWidget *parent) : QMainWindow(parent), ui(new Ui::PwGui), pipefd(pfd) @@ -28,7 +28,7 @@ PwGui::~PwGui() } // ____________________________________________________________________________ -void PwGui::initializeUI(char *user) +void PwGui::initializeUI(const char *user) { ui->setupUi(this); this->setWindowModality(Qt::ApplicationModal); diff --git a/src/pwgui/pwgui.h b/src/pwgui/pwgui.h index 348c5a1..49badbe 100644 --- a/src/pwgui/pwgui.h +++ b/src/pwgui/pwgui.h @@ -16,7 +16,7 @@ class PwGui : public QMainWindow Q_OBJECT public: - explicit PwGui(int pfd, char *user, QWidget *parent = 0); + explicit PwGui(int pfd, const char *user, QWidget *parent = 0); ~PwGui(); private slots: @@ -25,7 +25,7 @@ private slots: private: Ui::PwGui *ui; - void initializeUI(char *username); + void initializeUI(const char *username); int pipefd; }; -- cgit v1.2.3-55-g7522