Skip to content

Commit

Permalink
add override keyword where needed (#75)
Browse files Browse the repository at this point in the history
Signed-off-by: Soragna, Alberto <[email protected]>
  • Loading branch information
alsora authored Jun 10, 2020
1 parent 3fafb36 commit c5668b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/fastcdr/exceptions/Exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace eprosima
*
* @return The error message.
*/
virtual Cdr_DllAPI const char* what() const noexcept ;
virtual Cdr_DllAPI const char* what() const noexcept override;

protected:

Expand Down
2 changes: 1 addition & 1 deletion include/fastcdr/exceptions/NotEnoughMemoryException.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace eprosima
virtual Cdr_DllAPI ~NotEnoughMemoryException() noexcept;

//! @brief This function throws the object as exception.
virtual Cdr_DllAPI void raise() const;
virtual Cdr_DllAPI void raise() const override;

//! @brief Default message used in the library.
static Cdr_DllAPI const char* const NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT;
Expand Down

0 comments on commit c5668b9

Please sign in to comment.