| Index: remoting/host/disconnect_window_linux.cc
|
| diff --git a/remoting/host/disconnect_window_linux.cc b/remoting/host/disconnect_window_linux.cc
|
| index ad2707d9f789da6cafbbd2149cf6882d70089583..764996adcac4469dbe7d018a43e846d1d411ed00 100644
|
| --- a/remoting/host/disconnect_window_linux.cc
|
| +++ b/remoting/host/disconnect_window_linux.cc
|
| @@ -36,7 +36,7 @@ class DisconnectWindowLinux : public DisconnectWindow {
|
| private:
|
| CHROMEGTK_CALLBACK_1(DisconnectWindowLinux, void, OnResponse, int);
|
|
|
| - void CreateWindow(UiStrings* ui_strings);
|
| + void CreateWindow(const UiStrings& ui_strings);
|
|
|
| ChromotingHost* host_;
|
| GtkWidget* disconnect_window_;
|
| @@ -53,14 +53,14 @@ DisconnectWindowLinux::DisconnectWindowLinux()
|
| DisconnectWindowLinux::~DisconnectWindowLinux() {
|
| }
|
|
|
| -void DisconnectWindowLinux::CreateWindow(UiStrings* ui_strings) {
|
| +void DisconnectWindowLinux::CreateWindow(const UiStrings& ui_strings) {
|
| if (disconnect_window_) return;
|
|
|
| disconnect_window_ = gtk_dialog_new_with_buttons(
|
| - ui_strings->product_name.c_str(),
|
| + ui_strings.product_name.c_str(),
|
| NULL,
|
| GTK_DIALOG_NO_SEPARATOR,
|
| - ui_strings->disconnect_button_text_plus_shortcut.c_str(), GTK_RESPONSE_OK,
|
| + ui_strings.disconnect_button_text_plus_shortcut.c_str(), GTK_RESPONSE_OK,
|
| NULL);
|
|
|
| GtkWindow* window = GTK_WINDOW(disconnect_window_);
|
| @@ -98,7 +98,7 @@ void DisconnectWindowLinux::Show(ChromotingHost* host,
|
| host_ = host;
|
| CreateWindow(host->ui_strings());
|
| gtk_label_set_text(GTK_LABEL(message_),
|
| - host->ui_strings()->disconnect_message.c_str());
|
| + host->ui_strings().disconnect_message.c_str());
|
| gtk_window_present(GTK_WINDOW(disconnect_window_));
|
| }
|
|
|
|
|