summaryrefslogtreecommitdiff
path: root/tests/glibmm_date/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glibmm_date/main.cc')
-rw-r--r--tests/glibmm_date/main.cc20
1 files changed, 9 insertions, 11 deletions
diff --git a/tests/glibmm_date/main.cc b/tests/glibmm_date/main.cc
index db31cb60..1e6411d7 100644
--- a/tests/glibmm_date/main.cc
+++ b/tests/glibmm_date/main.cc
@@ -1,14 +1,15 @@
#include <glibmm.h>
#include <iostream>
-//Use this line if you want debug output:
-//std::ostream& ostr = std::cout;
+// Use this line if you want debug output:
+// std::ostream& ostr = std::cout;
-//This seems nicer and more useful than putting an ifdef around the use of ostr:
+// This seems nicer and more useful than putting an ifdef around the use of ostr:
std::stringstream debug;
std::ostream& ostr = debug;
-int main(int, char**)
+int
+main(int, char**)
{
Glib::Date date;
date.set_time_current();
@@ -16,19 +17,16 @@ int main(int, char**)
date.subtract_days(1);
date.add_years(1);
- ostr << "The date a year and a month from yesterday will be: " <<
- date.get_month() << "/" << (int) date.get_day() << "/" << date.get_year() <<
- "." << std::endl;
-
+ ostr << "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;
- ostr << "The copied date is: " << copy_date.get_month() << "/" <<
- (int) copy_date.get_day() << "/" << copy_date.get_year() << "." <<
- std::endl;
+ ostr << "The copied date is: " << copy_date.get_month() << "/" << (int)copy_date.get_day() << "/"
+ << copy_date.get_year() << "." << std::endl;
return EXIT_SUCCESS;
}