diff --git a/common/device-model.cpp b/common/device-model.cpp index a9b04a1bef..1991920868 100644 --- a/common/device-model.cpp +++ b/common/device-model.cpp @@ -2248,8 +2248,8 @@ namespace rs2 ImGui::Text(" %s", ss.str().c_str()); if (dev.supports(RS2_CAMERA_INFO_CONNECTION_TYPE)) { - auto connection_type = dev.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE); - if (connection_type == std::string("USB") && dev.supports(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR)) + std::string connection_type = dev.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE); + if (connection_type == "USB" && dev.supports(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR)) { std::string desc = dev.get_info(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR); ss.str(""); diff --git a/tools/depth-quality/depth-quality-model.cpp b/tools/depth-quality/depth-quality-model.cpp index 5eeadad23f..69c5a94a76 100644 --- a/tools/depth-quality/depth-quality-model.cpp +++ b/tools/depth-quality/depth-quality-model.cpp @@ -53,8 +53,8 @@ namespace rs2 auto dev = devices[0]; if (dev.supports(RS2_CAMERA_INFO_CONNECTION_TYPE)) { - auto connection_type = dev.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE); - if (connection_type == std::string("USB") && dev.supports(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR)) + std::string connection_type = dev.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE); + if (connection_type == "USB" && dev.supports(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR)) { std::string usb_type = dev.get_info(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR); usb2_device = (std::string::npos != usb_type.find("2.")); diff --git a/tools/fw-update/rs-fw-update.cpp b/tools/fw-update/rs-fw-update.cpp index d099b1737c..df8b5c0219 100644 --- a/tools/fw-update/rs-fw-update.cpp +++ b/tools/fw-update/rs-fw-update.cpp @@ -195,7 +195,7 @@ bool is_mipi_device( const rs2::device & dev ) bool is_mipi_device = false; if (dev.supports(RS2_CAMERA_INFO_CONNECTION_TYPE)) { - auto connection_type = dev.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE); + std::string connection_type = dev.get_info(RS2_CAMERA_INFO_CONNECTION_TYPE); if (connection_type == "GMSL") is_mipi_device = true; }