* Don't return a reference to a temporary; instead return by value

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2261 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-07-29 15:47:27 +00:00
parent 32f0b5bb1b
commit c4b9711e46
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ int InitialLimitsDlg::Selected() const
return _selected; return _selected;
} }
const std::string& InitialLimitsDlg::SelectedString() const std::string InitialLimitsDlg::SelectedString() const
{ {
if (_selected == -1) if (_selected == -1)
return std::string(); return std::string();

View File

@ -53,7 +53,7 @@ class InitialLimitsDlg : public CDialog
} }
int Selected() const; int Selected() const;
const std::string& SelectedString() const; std::string SelectedString() const;
// Dialog Data // Dialog Data
//{{AFX_DATA(InitialLimitsDlg) //{{AFX_DATA(InitialLimitsDlg)