Skip to content

Commit 5369b63

Browse files
committed
[Exception] clean naming
1 parent d10c154 commit 5369b63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/eigenpy/exception.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
2+
* Copyright 2014,2018 Nicolas Mansard and Justin Carpentier, LAAS-CNRS
33
*
44
* This file is part of eigenpy.
55
* eigenpy is free software: you can redistribute it and/or
@@ -18,8 +18,8 @@
1818
#include <exception>
1919
#include <string>
2020

21-
#ifndef __eigenpy_Exception_hpp__
22-
#define __eigenpy_Exception_hpp__
21+
#ifndef __eigenpy_exception_hpp__
22+
#define __eigenpy_exception_hpp__
2323

2424
namespace eigenpy
2525
{
@@ -30,7 +30,7 @@ namespace eigenpy
3030
{
3131
public:
3232
Exception() : message() {}
33-
Exception(std::string msg) : message(msg) {}
33+
Exception(const std::string & msg) : message(msg) {}
3434
const char *what() const throw()
3535
{
3636
return this->getMessage().c_str();
@@ -51,4 +51,4 @@ namespace eigenpy
5151

5252
} // namespace eigenpy
5353

54-
#endif // ifndef __eigenpy_Exception_hpp__
54+
#endif // ifndef __eigenpy_exception_hpp__

0 commit comments

Comments
 (0)