Skip to content

Commit

Permalink
use std::string references for exceptions (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelarguedas authored Feb 15, 2018
1 parent 4df666b commit c7a99e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/class_loader/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace class_loader
class ClassLoaderException : public std::runtime_error
{
public:
explicit inline ClassLoaderException(const std::string error_desc)
explicit inline ClassLoaderException(const std::string & error_desc)
: std::runtime_error(error_desc) {}
};

Expand All @@ -56,7 +56,7 @@ class ClassLoaderException : public std::runtime_error
class LibraryLoadException : public ClassLoaderException
{
public:
explicit inline LibraryLoadException(const std::string error_desc)
explicit inline LibraryLoadException(const std::string & error_desc)
: ClassLoaderException(error_desc) {}
};

Expand All @@ -67,7 +67,7 @@ class LibraryLoadException : public ClassLoaderException
class LibraryUnloadException : public ClassLoaderException
{
public:
explicit inline LibraryUnloadException(const std::string error_desc)
explicit inline LibraryUnloadException(const std::string & error_desc)
: ClassLoaderException(error_desc) {}
};

Expand All @@ -78,7 +78,7 @@ class LibraryUnloadException : public ClassLoaderException
class CreateClassException : public ClassLoaderException
{
public:
explicit inline CreateClassException(const std::string error_desc)
explicit inline CreateClassException(const std::string & error_desc)
: ClassLoaderException(error_desc) {}
};

Expand All @@ -89,7 +89,7 @@ class CreateClassException : public ClassLoaderException
class NoClassLoaderExistsException : public ClassLoaderException
{
public:
explicit inline NoClassLoaderExistsException(const std::string error_desc)
explicit inline NoClassLoaderExistsException(const std::string & error_desc)
: ClassLoaderException(error_desc) {}
};

Expand Down

0 comments on commit c7a99e0

Please sign in to comment.