Fixed clang++ compile.

This commit is contained in:
Casey Langen 2016-07-02 21:01:01 -07:00
parent b3a189b240
commit 3238e8f52f
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ namespace musik {
return Duration((int) round(seconds));
}
std::string Duration(std::string& str) {
std::string Duration(const std::string& str) {
if (str.size()) {
int seconds = boost::lexical_cast<int>(str);
return Duration(seconds);

View File

@ -39,7 +39,7 @@
namespace musik {
namespace box {
namespace duration {
std::string Duration(std::string& str);
std::string Duration(const std::string& str);
std::string Duration(int seconds);
std::string Duration(double seconds);
}