* 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-861f7616d084master
parent
32f0b5bb1b
commit
c4b9711e46
|
@ -82,7 +82,7 @@ int InitialLimitsDlg::Selected() const
|
|||
return _selected;
|
||||
}
|
||||
|
||||
const std::string& InitialLimitsDlg::SelectedString() const
|
||||
std::string InitialLimitsDlg::SelectedString() const
|
||||
{
|
||||
if (_selected == -1)
|
||||
return std::string();
|
||||
|
|
|
@ -53,7 +53,7 @@ class InitialLimitsDlg : public CDialog
|
|||
}
|
||||
|
||||
int Selected() const;
|
||||
const std::string& SelectedString() const;
|
||||
std::string SelectedString() const;
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(InitialLimitsDlg)
|
||||
|
|
Loading…
Reference in New Issue