Skip to content

Commit

Permalink
replace UNKNOWN_VALUE macro with constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Oct 15, 2023
1 parent 5131412 commit dfb14ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/enum-helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#include <librealsense2/hpp/rs_types.hpp>


#define UNKNOWN_VALUE "UNKNOWN"
namespace librealsense {


namespace librealsense {
constexpr static char const * UNKNOWN_VALUE = "UNKNOWN";


// Require the last enumerator value to be in format of RS2_#####_COUNT
Expand Down
2 changes: 1 addition & 1 deletion src/to-string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define STRARR( ARRAY, T, X ) ARRAY[RS2_##T##_##X] = STRX( X )


static std::string const unknown_value_str( UNKNOWN_VALUE );
static std::string const unknown_value_str( librealsense::UNKNOWN_VALUE );


namespace librealsense {
Expand Down

0 comments on commit dfb14ab

Please sign in to comment.