[1981139] initial value of reference to non-const must be an lvalue

This commit is contained in:
Aleksandar Fabijanic 2008-06-01 20:40:11 +00:00
parent 0a1c616368
commit 97b9101d54

View File

@ -365,7 +365,7 @@ std::string WinRegistryKey::key() const
std::string WinRegistryKey::key(const std::string& valueName) const
{
std::string& result = key();
std::string result = key();
if (!valueName.empty())
{
result += '\\';