diff dynamin/gui/control.d @ 106:acdbb30fee7e

Port to D2. Most of the effort was dealing with immutable and const.
author Jordan Miner <jminer7@gmail.com>
date Mon, 17 Dec 2012 23:41:50 -0600
parents 5c8c1c2e12c0
children
line wrap: on
line diff
--- a/dynamin/gui/control.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/gui/control.d	Mon Dec 17 23:41:50 2012 -0600
@@ -557,12 +557,12 @@
 	/**
 	 * Gets or sets the text that this control shows.
 	 */
-	string text() { return _text.dup; }
+	string text() { return _text; }
 	/// ditto
 	void text(string str) {
 		if(_text == str)
 			return;
-		_text = str.dup;
+		_text = str;
 		repaint();
 		//TextChanged(EventArgs e) // TODO: add event
 	}