src: fixed some clang tidy warnings
* implemented CxxDeclName constructors that just move the members * removed empty destructors because they disable default move constructors * removed some unnecessary code * replaced ".size() == 0" with ".empty()" because it's more explicit
This commit is contained in:
@@ -84,7 +84,7 @@ FilePath::~FilePath()
|
||||
|
||||
boost::filesystem::path FilePath::getPath() const
|
||||
{
|
||||
return boost::filesystem::path(*(m_path.get()));
|
||||
return *(m_path.get());
|
||||
}
|
||||
|
||||
bool FilePath::empty() const
|
||||
|
||||
@@ -20,7 +20,7 @@ public:
|
||||
explicit FilePath(const char* filePath);
|
||||
explicit FilePath(const std::string& filePath);
|
||||
explicit FilePath(const boost::filesystem::path& filePath);
|
||||
FilePath(const FilePath& filePath);
|
||||
FilePath(const FilePath& other);
|
||||
FilePath(FilePath&& other);
|
||||
FilePath(const std::string& filePath, const std::string& base);
|
||||
~FilePath();
|
||||
|
||||
@@ -24,7 +24,7 @@ SharedMemoryGarbageCollector* SharedMemoryGarbageCollector::createInstance()
|
||||
s_instance = std::shared_ptr<SharedMemoryGarbageCollector>(new SharedMemoryGarbageCollector());
|
||||
}
|
||||
}
|
||||
catch (boost::interprocess::interprocess_exception& e)
|
||||
catch (boost::interprocess::interprocess_exception)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user