nemiver/nemiver-gcc45.patch

35 lines
1.0 KiB
Diff
Raw Normal View History

From 9978746e91b8c6789d792bdc926306db0873c74c Mon Sep 17 00:00:00 2001
From: Dodji Seketeli <dodji@redhat.com>
Date: Sat, 27 Feb 2010 21:14:38 +0000
Subject: Fix build with gcc 4.5
* src/common/nmv-object.cc: Class name is Object, not
Object::Object.
---
Index: nemiver-0.7.3/src/common/nmv-object.cc
===================================================================
--- nemiver-0.7.3.orig/src/common/nmv-object.cc
+++ nemiver-0.7.3/src/common/nmv-object.cc
@@ -59,7 +59,7 @@ Object::Object (Object const &a_object):
*m_priv = *a_object.m_priv;
}
-Object::Object&
+Object&
Object::operator= (Object const &a_object)
{
if (this == &a_object)
Index: nemiver-0.7.3/src/langs/nmv-cpp-ast.cc
===================================================================
--- nemiver-0.7.3.orig/src/langs/nmv-cpp-ast.cc
+++ nemiver-0.7.3/src/langs/nmv-cpp-ast.cc
@@ -64,7 +64,7 @@ Token::Token (const Token &a_t)
m_int_value = a_t.get_int_value ();
}
-Token::Token&
+Token&
Token::operator= (const Token &a_t)
{
m_kind = a_t.get_kind ();