[Aptitude-svn-commit] r3422 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows@costa.debian.org
Sat, 25 Jun 2005 17:14:04 +0000


Author: dburrows
Date: Sat Jun 25 17:14:02 2005
New Revision: 3422

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/curses++.h
Log:
Add a convenience constructor to build a wchstring by repeating a wchar_t.


Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Jun 25 17:14:02 2005
@@ -1,5 +1,10 @@
 2005-06-25  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/curses++.h:
+
+	  Add a convenience constructor to build a wchstring by repeating
+	  a wchar_t.
+
 	* src/vscreen/curses++.cc, src/vscreen/curses++.h:
 
 	  Add a preliminary, very hacky, routine to output wide-character

Modified: branches/aptitude-0.3/aptitude/src/vscreen/curses++.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/curses++.h	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/curses++.h	Sat Jun 25 17:14:02 2005
@@ -216,6 +216,9 @@
   wchstring(size_t n, wchtype c)
     :super(n, c) {}
 
+  wchstring(size_t n, wchar_t c, attr_t a)
+    :super(n, wchtype(c, a)) {}
+
   /** Change the attributes of this string by using the given style. */
   void apply_style(const style &st);