diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pwgui/pwgui.cpp | 4 | ||||
-rw-r--r-- | src/pwgui/pwgui.h | 4 |
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; }; |