[glabels/vala] Reconcile coding style of dup methods.
- From: Jim Evins <jimevins src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glabels/vala] Reconcile coding style of dup methods.
- Date: Sun, 5 Aug 2012 18:44:26 +0000 (UTC)
commit e60351bbaa593e1bda7cc73f23bb84754e41cbbd
Author: Jim Evins <evins snaught com>
Date: Sun Aug 5 14:43:59 2012 -0400
Reconcile coding style of dup methods.
glabels/text_node.vala | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/glabels/text_node.vala b/glabels/text_node.vala
index a7d2ca5..2d43a78 100644
--- a/glabels/text_node.vala
+++ b/glabels/text_node.vala
@@ -37,12 +37,6 @@ namespace glabels
}
- public TextNode.dup( TextNode node )
- {
- this( node.field_flag, node.data );
- }
-
-
private enum State { START,
LITERAL, LITERAL_DOLLAR,
START_DOLLAR, FIELD,
@@ -204,6 +198,14 @@ namespace glabels
}
+ public TextNode dup()
+ {
+ TextNode copy = new TextNode( field_flag, data );
+
+ return copy;
+ }
+
+
public bool equal( TextNode node2 )
{
if ( this.field_flag != node2.field_flag )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]