Skip to content

Commit 7f4a0ce

Browse files
Nir-AzAviaAv
authored andcommitted
PR #14398 from AviaAv: fix D555 throwing on Linux in Debug build
1 parent 46e9fbf commit 7f4a0ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dds/rs-dds-device-proxy.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,20 @@ dds_device_proxy::dds_device_proxy( std::shared_ptr< const device_info > const &
197197
[&]( std::shared_ptr< realdds::dds_stream > const & stream )
198198
{
199199
auto & sensor = sensor_name_to_info[stream->sensor_name()];
200-
if( stream->type_string() == "depth"
201-
|| stream->type_string() == "ir" )
200+
if( strcmp( stream->type_string(), "depth" ) == 0
201+
|| strcmp( stream->type_string(), "ir" ) == 0 )
202202
{
203203
// If there's depth or infrared, it is a depth sensor regardless of what else is in there
204204
// E.g., the D405 has a color stream in the depth sensor
205205
sensor.type = RS2_STREAM_DEPTH;
206206
}
207207
else if( RS2_STREAM_ANY == sensor.type )
208208
{
209-
if( stream->type_string() == "color" )
209+
if( strcmp( stream->type_string(), "color" ) == 0 )
210210
{
211211
sensor.type = RS2_STREAM_COLOR;
212212
}
213-
else if( stream->type_string() == "motion" )
213+
else if( strcmp( stream->type_string(), "motion" ) == 0 )
214214
{
215215
sensor.type = RS2_STREAM_MOTION;
216216
}

0 commit comments

Comments
 (0)