gnucash unstable: Fix Travis 'dangling else' warning.

John Ralls jralls at code.gnucash.org
Wed Dec 27 09:33:06 EST 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/26b82b56 (commit)
	from  https://github.com/Gnucash/gnucash/commit/8ae330c8 (commit)



commit 26b82b56e086f0138e50c79e03d0c1c71069e884
Author: John Ralls <jralls at ceridwen.us>
Date:   Wed Dec 27 06:32:54 2017 -0800

    Fix Travis 'dangling else' warning.

diff --git a/libgnucash/engine/test/gtest-gnc-datetime.cpp b/libgnucash/engine/test/gtest-gnc-datetime.cpp
index 364a7dc..350d22a 100644
--- a/libgnucash/engine/test/gtest-gnc-datetime.cpp
+++ b/libgnucash/engine/test/gtest-gnc-datetime.cpp
@@ -328,8 +328,11 @@ TEST(gnc_datetime_constructors, test_gncdate_neutral_constructor)
      */
     constexpr time64 max_western_offset = -10 * 3600;
     constexpr time64 max_eastern_offset = 13 * 3600;
-    if (gncdt.offset() >= max_western_offset && gncdt.offset() <= max_eastern_offset)
+    if (gncdt.offset() >= max_western_offset &&
+        gncdt.offset() <= max_eastern_offset)
+    {
         EXPECT_EQ(atime.format("%d-%m-%Y %H:%M:%S %z"), "20-04-2017 10:59:00 UTC");
+    }
 }
 
 TEST(gnc_datetime_functions, test_format)



Summary of changes:
 libgnucash/engine/test/gtest-gnc-datetime.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list