diff --git a/samples/internat/internat.cpp b/samples/internat/internat.cpp index c574fb3e06..64ca69f039 100644 --- a/samples/internat/internat.cpp +++ b/samples/internat/internat.cpp @@ -588,7 +588,7 @@ void MyFrame::OnSave(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event)) { - const wxString& title = _("Testing _() (gettext)"); + const wxString title = _("Testing _() (gettext)"); // NOTE: using the wxTRANSLATE() macro here we won't show a localized // string in the text entry dialog; we'll simply show the un-translated @@ -611,7 +611,7 @@ void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnTest2(wxCommandEvent& WXUNUSED(event)) { - const wxString& title = _("Testing _N() (ngettext)"); + const wxString title = _("Testing _N() (ngettext)"); wxTextEntryDialog d(this, _("Please enter range for plural forms of \"n files deleted\" phrase"), title, "0-10");