[niepce] XmpMeta is non copyable.



commit 7eff529258d93a300b9b8a7b71176fda41129a65
Author: Hubert Figuière <hub figuiere net>
Date:   Mon Sep 2 23:34:54 2013 -0400

    XmpMeta is non copyable.

 src/fwk/utils/exempi.hpp |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/fwk/utils/exempi.hpp b/src/fwk/utils/exempi.hpp
index 47ff38e..30ea848 100644
--- a/src/fwk/utils/exempi.hpp
+++ b/src/fwk/utils/exempi.hpp
@@ -105,6 +105,8 @@ public:
 class XmpMeta
 {
 public:
+    NON_COPYABLE(XmpMeta);
+
     XmpMeta();
     XmpMeta(const std::string & for_file, bool sidecar_only);
     virtual ~XmpMeta();
@@ -117,8 +119,8 @@ public:
     std::string serialize_inline() const;
     /** serialize the XMP (for the sidecar) */
     std::string serialize() const;
-    /** load the XMP from the unserialized buffer 
-     * (NUL terminated) 
+    /** load the XMP from the unserialized buffer
+     * (NUL terminated)
      */
     void unserialize(const char *);
 
@@ -131,9 +133,6 @@ public:
     std::string creation_date_str() const;
     const std::vector< std::string > & keywords() const;
 private:
-    XmpMeta( const XmpMeta & ); // copy constructor
-
-    XmpMeta & operator=(const XmpMeta &); // assignment
 
     XmpPtr m_xmp;
     // caches


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]