diff --git a/Core/Code/CppMicroServices/src/service/usServiceInterface.h b/Core/Code/CppMicroServices/src/service/usServiceInterface.h index de734d2b95..34bc674a8c 100644 --- a/Core/Code/CppMicroServices/src/service/usServiceInterface.h +++ b/Core/Code/CppMicroServices/src/service/usServiceInterface.h @@ -1,55 +1,55 @@ /*============================================================================= Library: CppMicroServices Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. =============================================================================*/ #ifndef USSERVICEINTERFACE_H #define USSERVICEINTERFACE_H #include template inline const char* us_service_interface_iid() { return 0; } -#if defined(QT_DEBUG) || defined(QT_NODEBUG) +#if defined(QT_DEBUG) || defined(QT_NO_DEBUG) #include #define US_DECLARE_SERVICE_INTERFACE(IFace, IId) \ template<> inline const char* qobject_interface_iid() \ { return IId; } \ template<> inline const char* us_service_interface_iid() \ { return IId; } \ template<> inline IFace *qobject_cast(QObject *object) \ { return dynamic_cast(reinterpret_cast((object ? object->qt_metacast(IId) : 0))); } \ template<> inline IFace *qobject_cast(const QObject *object) \ { return dynamic_cast(reinterpret_cast((object ? const_cast(object)->qt_metacast(IId) : 0))); } #else #define US_DECLARE_SERVICE_INTERFACE(IFace, IId) \ template<> inline const char* us_service_interface_iid() \ { return IId; } \ #endif template inline const char* us_service_impl_name(T* /*impl*/) { return "(unknown implementation)"; } #endif // USSERVICEINTERFACE_H