glibmm r662 - in trunk: . tests/glibmm_date



Author: jaalburqu
Date: Tue Jun 10 20:44:32 2008
New Revision: 662
URL: http://svn.gnome.org/viewvc/glibmm?rev=662&view=rev

Log:
2008-06-10  Josà Alburquerque  <jaalburqu svn gnome org>

	* tests/glibmm_date/main.cc: Removed duplicate code so test can
	compile.

Modified:
   trunk/ChangeLog
   trunk/tests/glibmm_date/main.cc

Modified: trunk/tests/glibmm_date/main.cc
==============================================================================
--- trunk/tests/glibmm_date/main.cc	(original)
+++ trunk/tests/glibmm_date/main.cc	Tue Jun 10 20:44:32 2008
@@ -25,32 +25,3 @@
 
   return 0;
 }
-
-#include <glibmm.h>
-#include <iostream>
-
-int main(int, char**)
-{
-  Glib::Date date;
-  date.set_time_current();
-  date.add_months(1);
-  date.subtract_days(1);
-  date.add_years(1);
-
-  std::cout << "The date a year and a month from yesterday will be: " <<
-    date.get_month() << "/" << (int) date.get_day() << "/" << date.get_year() <<
-      "." << std::endl;
-
-
-  Glib::Date copy_date(date);
-  Glib::Date assigned_date;
-
-  assigned_date = copy_date;
-
-  std::cout << "The copied date is: " << copy_date.get_month() << "/" <<
-    (int) copy_date.get_day() << "/" << copy_date.get_year() << "." <<
-      std::endl;
-
-  return 0;
-}
-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]