This commit fixes issue when member function returns
reference to the local variable.
Signed-off-by: Sergey Vostokov <s.vostokov@samsung.com>
explicit SharedLibrary(const std::string &fullPath);
void *findFunc(const std::string &funcName);
- std::string getPath() const;
+ const std::string& getPath() const;
private:
return (nullptr != _handle);
}
-std::string SharedLibrary::getPath() const { return _path; }
+const std::string& SharedLibrary::getPath() const { return _path; }
std::ostream &operator<<(std::ostream &st, const SharedLibrary &lib)
{