diff --git a/src/online/steam.cpp b/src/online/steam.cpp index c8d1f64e5..3267d9851 100644 --- a/src/online/steam.cpp +++ b/src/online/steam.cpp @@ -265,9 +265,8 @@ std::vector Steam::getFriends() * filename. Note that the avatar is always saved in png format (independent * on what is specified as filename). */ -int Steam::saveAvatarAs(const std::string filename) +int Steam::saveAvatarAs(const std::string &filename) { - //std::string s = sendCommand(std::string("avatar ")+filename); std::string s = sendCommand("avatar"); if(s=="filename") s=sendCommand(filename); diff --git a/src/online/steam.hpp b/src/online/steam.hpp index 546fbddc3..bcc695900 100644 --- a/src/online/steam.hpp +++ b/src/online/steam.hpp @@ -61,7 +61,7 @@ public: ~Steam(); const std::string& getUserName(); const std::string& getSteamID(); - int saveAvatarAs(const std::string filename); + int saveAvatarAs(const std::string &filename); std::vector getFriends(); // ------------------------------------------------------------------------ /** Returns true if the connection to the Steam API was successful, i.e.