summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2021-04-30 11:22:51 +0200
committerSimon Rettberg2021-04-30 11:22:51 +0200
commit22e477caa88feadc4ce3105676cede1dcc27dba0 (patch)
treec162e98c41ff41341c1d89b4ce1118b6306f926e /src
parentFix Display handle leak (diff)
downloadprintergui-22e477caa88feadc4ce3105676cede1dcc27dba0.tar.gz
printergui-22e477caa88feadc4ce3105676cede1dcc27dba0.tar.xz
printergui-22e477caa88feadc4ce3105676cede1dcc27dba0.zip
const
Diffstat (limited to 'src')
-rw-r--r--src/pwgui/pwgui.cpp4
-rw-r--r--src/pwgui/pwgui.h4
2 files changed, 4 insertions, 4 deletions
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;
};