From 1ad0cf2eec3d2c9aad25bd2b67eea1f903883065 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Mon, 12 Feb 2024 11:28:38 +0100 Subject: [PATCH] Fix compilation error --- DDAlign/src/GlobalAlignmentStack.cpp | 1 + DDCond/src/ConditionsDependencyHandler.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DDAlign/src/GlobalAlignmentStack.cpp b/DDAlign/src/GlobalAlignmentStack.cpp index 846885e70..d6aaf8f4d 100644 --- a/DDAlign/src/GlobalAlignmentStack.cpp +++ b/DDAlign/src/GlobalAlignmentStack.cpp @@ -95,6 +95,7 @@ GlobalAlignmentStack::~GlobalAlignmentStack() { GlobalAlignmentStack& GlobalAlignmentStack::get() { if ( _stack().get() ) return *_stack(); except("GlobalAlignmentStack", "Stack not allocated -- may not be retrieved!"); + throw std::runtime_error("Stack not allocated"); } /// Create an alignment stack instance. The creation of a second instance will be refused. diff --git a/DDCond/src/ConditionsDependencyHandler.cpp b/DDCond/src/ConditionsDependencyHandler.cpp index 29fd5c2ab..97aee01fe 100644 --- a/DDCond/src/ConditionsDependencyHandler.cpp +++ b/DDCond/src/ConditionsDependencyHandler.cpp @@ -26,7 +26,7 @@ namespace { return d->target.name; #else char text[64]; - ConditionKey::KeyMaker key(d->target.hash); + dd4hep::ConditionKey::KeyMaker key(d->target.hash); ::snprintf(text,sizeof(text),"%08X %08X",key.values.det_key, key.values.item_key); return text; #endif -- GitLab