diff --git a/vncviewer/UserDialog.cxx b/vncviewer/UserDialog.cxx index b3840d62dc..ed75a53c46 100644 --- a/vncviewer/UserDialog.cxx +++ b/vncviewer/UserDialog.cxx @@ -57,6 +57,9 @@ using namespace rfb; static Fl_Pixmap secure_icon(secure); static Fl_Pixmap insecure_icon(insecure); +std::string UserDialog::savedUsername; +std::string UserDialog::savedPassword; + static long ret_val = 0; static void button_cb(Fl_Widget *widget, long val) { diff --git a/vncviewer/UserDialog.h b/vncviewer/UserDialog.h index c16923c128..ddafbc3c25 100644 --- a/vncviewer/UserDialog.h +++ b/vncviewer/UserDialog.h @@ -38,8 +38,8 @@ class UserDialog void resetPassword(); private: - std::string savedUsername; - std::string savedPassword; + static std::string savedUsername; + static std::string savedPassword; }; #endif