From abf65ec3bf578ae9480bfe5a59fd86c298fb7a23 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Wed, 2 Sep 2020 14:38:27 +0900 Subject: [PATCH] DSProperty: move DSPropertyExceptopn from private class to public class Change-Id: Id68c0a4ebc1ed5c44b9cba8953fbd28c6e4b9ef5 --- src/DSProperty/DSProperty.h | 16 ++++++++++++++++ src/DSProperty/DSPropertyPrivate.h | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/DSProperty/DSProperty.h b/src/DSProperty/DSProperty.h index 3039fba..d3abdd0 100644 --- a/src/DSProperty/DSProperty.h +++ b/src/DSProperty/DSProperty.h @@ -32,6 +32,22 @@ namespace display_server class DSPropertyPrivate; +struct DSPropertyException : public std::exception +{ +public: + DSPropertyException(std::string str) + : __msg(str) + {} + + virtual const char *what() const noexcept override + { + return __msg.c_str(); + } + +private: + std::string __msg; +}; + class DSProperty { public: diff --git a/src/DSProperty/DSPropertyPrivate.h b/src/DSProperty/DSPropertyPrivate.h index d851a29..59c6002 100644 --- a/src/DSProperty/DSPropertyPrivate.h +++ b/src/DSProperty/DSPropertyPrivate.h @@ -43,22 +43,6 @@ using DSPropertyType = enum type { using DSPropertyVariant = std::variant; -struct DSPropertyException : public std::exception -{ -public: - DSPropertyException(std::string str) - : __msg(str) - {} - - virtual const char *what() const noexcept override - { - return __msg.c_str(); - } - -private: - std::string __msg; -}; - class DSPropertyPrivate { public: -- 2.7.4