From 499e719f7190e3a07c0704ce506909eecce94461 Mon Sep 17 00:00:00 2001 From: Rainer Kartmann <rainer.kartmann@kit.edu> Date: Wed, 1 Sep 2021 18:41:04 +0200 Subject: [PATCH] Fix namespace --- .../codeWriter/cpp/serializer/ndarray/Image.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/ndarray/Image.cpp b/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/ndarray/Image.cpp index 462decae2..771ffb4f3 100644 --- a/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/ndarray/Image.cpp +++ b/source/RobotAPI/libraries/aron/core/codegenerator/codeWriter/cpp/serializer/ndarray/Image.cpp @@ -93,7 +93,7 @@ namespace armarx::aron::cppserializer::serializer { #define CASE( typeConstant ) \ case typeConstant : \ - typeName = "aron::typenavigator::ImageNavigator::pixelTypeToName( " #typeConstant " )"; \ + typeName = "::armarx::aron::typenavigator::ImageNavigator::pixelTypeToName( " #typeConstant " )"; \ break; CASE(::armarx::aron::typenavigator::ImagePixelType::Rgb24) @@ -218,15 +218,15 @@ case typeConstant : \ { CppBlockPtr block_switch = std::make_shared<CppBlock>(); - #define CASE( typeConstant ) \ - block_switch->addLine("case " #typeConstant ":"); \ - block_switch->addLine("cvMatType = " + pixelTypeMap.at(typeConstant) + ";"); \ - block_switch->addLine("break;") +#define CASE( typeConstant ) \ + block_switch->addLine("case " #typeConstant ":"); \ + block_switch->addLine("cvMatType = " + pixelTypeMap.at(typeConstant) + ";"); \ + block_switch->addLine("break;") CASE(::armarx::aron::typenavigator::ImagePixelType::Rgb24); CASE(::armarx::aron::typenavigator::ImagePixelType::Depth32); - #undef CASE +#undef CASE block_switch->addLine("default:"); { -- GitLab