add inline specifiers

This commit is contained in:
FrancisZhang 2019-11-09 20:28:08 +00:00
parent 489d9f7b1f
commit a8f59cf075
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ namespace npp
/// \param rOutputStream The stream the exception information is written to.
/// \param rException The exception that's being written.
/// \return Reference to the output stream being used.
std::ostream &
inline std::ostream &
operator << (std::ostream &rOutputStream, const Exception &rException)
{
rOutputStream << rException.toString();

View File

@ -137,13 +137,13 @@ namespace npp
Size oSize_;
};
bool
inline bool
operator== (const Image::Size &rFirst, const Image::Size &rSecond)
{
return rFirst.nWidth == rSecond.nWidth && rFirst.nHeight == rSecond.nHeight;
}
bool
inline bool
operator!= (const Image::Size &rFirst, const Image::Size &rSecond)
{
return rFirst.nWidth != rSecond.nWidth || rFirst.nHeight != rSecond.nHeight;