File cmake-cmCustomCommand_add_operator=.patch of Package cmake.openSUSE_12.3_Update

Index: cmake-2.8.10.2/Source/cmCustomCommand.cxx
===================================================================
--- cmake-2.8.10.2.orig/Source/cmCustomCommand.cxx	2012-11-27 14:26:32.000000000 +0100
+++ cmake-2.8.10.2/Source/cmCustomCommand.cxx	2013-07-17 15:41:04.723707680 +0200
@@ -22,6 +22,34 @@ cmCustomCommand::cmCustomCommand()
 }
 
 //----------------------------------------------------------------------------
+
+cmCustomCommand& cmCustomCommand::operator=(const cmCustomCommand& r)
+{
+  if (this != &r) {
+    Outputs = r.Outputs;
+    Depends = r.Depends;
+    CommandLines = r.CommandLines;
+    HaveComment = r.HaveComment;
+    Comment = r.Comment;
+    WorkingDirectory = r.WorkingDirectory;
+    EscapeAllowMakeVars = r.EscapeAllowMakeVars;
+    EscapeOldStyle = r.EscapeOldStyle;
+    ImplicitDepends = r.ImplicitDepends;
+
+    delete Backtrace;
+    Backtrace = 0;
+    try {
+      Backtrace = new cmListFileBacktrace(*r.Backtrace);
+    } catch (...) {
+      delete Backtrace;
+      throw;
+    }
+  }
+
+  return *this;
+}
+
+//----------------------------------------------------------------------------
 cmCustomCommand::cmCustomCommand(const cmCustomCommand& r):
   Outputs(r.Outputs),
   Depends(r.Depends),
Index: cmake-2.8.10.2/Source/cmCustomCommand.h
===================================================================
--- cmake-2.8.10.2.orig/Source/cmCustomCommand.h	2012-11-27 14:26:32.000000000 +0100
+++ cmake-2.8.10.2/Source/cmCustomCommand.h	2013-07-17 15:38:17.723838081 +0200
@@ -27,6 +27,9 @@ public:
   /** Default and copy constructors for STL containers.  */
   cmCustomCommand();
   cmCustomCommand(const cmCustomCommand& r);
+  /** Operator= */
+  cmCustomCommand& operator=(const cmCustomCommand& r);
+
 
   /** Main constructor specifies all information for the command.  */
   cmCustomCommand(cmMakefile* mf,
openSUSE Build Service is sponsored by