From b744943c98ad3d816180f568f44848fea3ed94e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 13 Nov 2013 20:03:20 +0100 Subject: [PATCH] Platform: deinline also these destructors. Miight reduce some code bloat. --- src/Platform/GlxApplication.cpp | 2 ++ src/Platform/GlxApplication.h | 2 +- src/Platform/XEglApplication.cpp | 2 ++ src/Platform/XEglApplication.h | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Platform/GlxApplication.cpp b/src/Platform/GlxApplication.cpp index e100ff5ef..8aacac191 100644 --- a/src/Platform/GlxApplication.cpp +++ b/src/Platform/GlxApplication.cpp @@ -33,6 +33,8 @@ GlxApplication::GlxApplication(const Arguments& arguments, const Configuration& GlxApplication::GlxApplication(const Arguments& arguments, std::nullptr_t): AbstractXApplication(new Implementation::GlxContextHandler, arguments, nullptr) {} +GlxApplication::~GlxApplication() = default; + template class BasicScreen; template class BasicScreenedApplication; diff --git a/src/Platform/GlxApplication.h b/src/Platform/GlxApplication.h index e06782701..03567f595 100644 --- a/src/Platform/GlxApplication.h +++ b/src/Platform/GlxApplication.h @@ -75,7 +75,7 @@ class GlxApplication: public AbstractXApplication { protected: /* Nobody will need to have (and delete) GlxApplication*, thus this is faster than public pure virtual destructor */ - ~GlxApplication() = default; + ~GlxApplication(); }; /** @hideinitializer diff --git a/src/Platform/XEglApplication.cpp b/src/Platform/XEglApplication.cpp index 39205ebe6..41dd4b1d3 100644 --- a/src/Platform/XEglApplication.cpp +++ b/src/Platform/XEglApplication.cpp @@ -33,6 +33,8 @@ XEglApplication::XEglApplication(const Arguments& arguments, const Configuration XEglApplication::XEglApplication(const Arguments& arguments, std::nullptr_t): AbstractXApplication(new Implementation::EglContextHandler, arguments, nullptr) {} +XEglApplication::~XEglApplication() = default; + template class BasicScreen; template class BasicScreenedApplication; diff --git a/src/Platform/XEglApplication.h b/src/Platform/XEglApplication.h index a70331159..5c436c101 100644 --- a/src/Platform/XEglApplication.h +++ b/src/Platform/XEglApplication.h @@ -76,7 +76,7 @@ class XEglApplication: public AbstractXApplication { protected: /* Nobody will need to have (and delete) XEglApplication*, thus this is faster than public pure virtual destructor */ - ~XEglApplication() = default; + ~XEglApplication(); }; /** @hideinitializer