[gexiv2] Fix accidental c++11ism



commit 325ec930a9964537da84bfdd86c1922e3d18029c
Author: Jens Georg <mail jensge org>
Date:   Fri Mar 3 21:55:15 2017 +0100

    Fix accidental c++11ism
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779551

 gexiv2/gexiv2-metadata-gps.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gexiv2/gexiv2-metadata-gps.cpp b/gexiv2/gexiv2-metadata-gps.cpp
index 43bb37e..b3ed5d5 100644
--- a/gexiv2/gexiv2-metadata-gps.cpp
+++ b/gexiv2/gexiv2-metadata-gps.cpp
@@ -29,8 +29,8 @@ static double convert_rational(const Exiv2::Rational& r) {
         throw std::overflow_error("Invalid fraction");
     }
 
-    auto num = static_cast<double>(r.first);
-    auto den = static_cast<double>(r.second);
+    double num = static_cast<double>(r.first);
+    double den = static_cast<double>(r.second);
 
     return num / den;
 }


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