Skip to content

Commit

Permalink
CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-mp committed Apr 14, 2021
1 parent 4556bfc commit fe42bea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/realsense-ui-advanced-mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ inline void slider_int(std::string& error_message, const char* id, T* val, S T::
if ((new_value > max) || (new_value < min))
{
std::stringstream ss;
ss << "New value " << new_value << " to be within [" << min << ", " << max << "] range";
error_message = ss.str().c_str();
ss << "New value " << new_value << " must be within [" << min << ", " << max << "] range";
error_message = ss.str();
}
else
{
Expand Down Expand Up @@ -170,8 +170,8 @@ inline void slider_float(std::string& error_message, const char* id, T* val, S T
if ((new_value > max) || (new_value<min))
{
std::stringstream ss;
ss << "New value " << new_value << " to be within [" << min << ", " << max << "] range";
error_message = ss.str().c_str();
ss << "New value " << new_value << " must be within [" << min << ", " << max << "] range";
error_message = ss.str();
}
else
{
Expand Down

0 comments on commit fe42bea

Please sign in to comment.