Skip to content

Commit

Permalink
Use one-line namespace definition in C++ bootstrap files
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdaming committed Nov 30, 2023
1 parent 0580d7c commit a0c3738
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
14 changes: 4 additions & 10 deletions cpp/include/kata/lcd/Lcd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@ SOFTWARE.
#include <kata/lcd/config.hpp>
#include <string>

namespace com {
namespace murex {
namespace kata {
namespace lcd {
namespace com::murex::kata::lcd
{

LCD_API std::string lcdConvert(unsigned int number);

} // namespace lcd
} // namespace kata
} // namespace murex
} // namespace com
LCD_API std::string lcdConvert(unsigned int number);

} // namespace com::murex::kata::lcd
18 changes: 6 additions & 12 deletions cpp/src/kata/lcd/Lcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,12 @@ SOFTWARE.

#include <kata/lcd/Lcd.hpp>

namespace com {
namespace murex {
namespace kata {
namespace lcd {

std::string lcdConvert(unsigned int number)
namespace com::murex::kata::lcd
{
return "";
}

} // namespace lcd
} // namespace kata
} // namespace murex
} // namespace com
std::string lcdConvert(unsigned int number)
{
return "";
}

} // namespace com::murex::kata::lcd

0 comments on commit a0c3738

Please sign in to comment.