Merge "use modern construct '= default' for special functions." into devel/master
[platform/core/uifw/dali-core.git] / dali / integration-api / context-notifier.h
index 348f292..4e9c136 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_INTEGRATION_CONTEXT_NOTIFIER_H__
-#define __DALI_INTEGRATION_CONTEXT_NOTIFIER_H__
+#ifndef DALI_INTEGRATION_CONTEXT_NOTIFIER_H
+#define DALI_INTEGRATION_CONTEXT_NOTIFIER_H
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,7 +21,6 @@ namespace Dali
 {
 namespace Integration
 {
-
 /**
  * Interface to inform dali core of context loss and regain
  */
@@ -46,10 +45,15 @@ public:
    * Multi-threading note: this method should be called from the main thread
    */
   virtual void NotifyContextRegained() = 0;
+
+protected:
+  /**
+   * Virtual destructor, no deletion through this interface
+   */
+  virtual ~ContextNotifierInterface() = default;
 };
 
 } // namespace Integration
 } // namespace Dali
 
-
-#endif // __DALI_INTEGRATION_CONTEXT_NOTIFICATION_H__
+#endif // DALI_INTEGRATION_CONTEXT_NOTIFIER_H