TizenRefApp-8721 [Gallery] Fix GCC build 43/134943/1
authorIgor Nazarov <i.nazarov@samsung.com>
Tue, 20 Jun 2017 10:11:35 +0000 (13:11 +0300)
committerIgor Nazarov <i.nazarov@samsung.com>
Tue, 20 Jun 2017 10:11:35 +0000 (13:11 +0300)
Change-Id: I1c66fc1f6e0ed89aee14b30621af0f0e0e4354be

ucl/inc/ucl/gui/Widget.h
ucl/inc/ucl/misc/RefCountAware.h
ucl/inc/ucl/util/memory/RefCountObj.h

index c317962c033de5d931afbc3759b357d7552f16ea..2048a7d6521e5087667d325604808bdf8586205b 100644 (file)
@@ -123,10 +123,13 @@ namespace ucl {
 
                void delEventProxy(const EventProxiesIt it);
 
-       protected:
-               // This section MUST be protected!
+       public:
+               // This section MUST be public!
                // Signal to RefCountObj<T, C> to call onUniqueChanged()
-               enum { ENABLE_ON_UNIQUE_CHANGED_DISPATCH };
+               enum { _ENABLE_ON_UNIQUE_CHANGED_DISPATCH };
+
+       protected:
+               // This section MAY be protected
                void onUniqueChanged(bool isUnique);
 
        private:
index ed05bfe84e0e49847e3e07c24ae48ba863a466a3..e75ecb9e384978bd39dbdef27687fbf8f773b72c 100644 (file)
@@ -38,8 +38,10 @@ namespace ucl {
                RefCountAware(IRefCountObj *rc);
                virtual ~RefCountAware() = default;
 
-       protected:
-               enum { IS_REF_COUNT_AWARE };
+       public:
+               // This section MUST be public!
+               // Signal to RefCountObj<T, C> to pass IRefCountObj to constructor
+               enum { _IS_REF_COUNT_AWARE };
 
        protected:
                IRefCountObj *const m_rc;
index 7fa69c4e4b4afe85c3283d49168373366870be60..9832ff6797419ffc363468ff18ea6911b9a3b7bb 100644 (file)
@@ -44,14 +44,14 @@ namespace ucl {
                template <class T2, class = char[1]>
                struct IsRefCountAware : std::false_type {};
                template <class T2>
-               struct IsRefCountAware<T2, char[T2::IS_REF_COUNT_AWARE * 0 + 1]> :
+               struct IsRefCountAware<T2, char[T2::_IS_REF_COUNT_AWARE * 0 + 1]> :
                                std::true_type {};
 
                template <class T2, class = char[1]>
                struct IsOnUniqueAware : std::false_type {};
                template <class T2>
                struct IsOnUniqueAware<T2,
-                               char[T2::ENABLE_ON_UNIQUE_CHANGED_DISPATCH * 0 + 1]> :
+                               char[T2::_ENABLE_ON_UNIQUE_CHANGED_DISPATCH * 0 + 1]> :
                                std::true_type {};
 
        private: