[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:36:44 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=6d3cb17

The following commit has been merged in the master branch:
commit 6d3cb17189546946baa977db008ff4d04115f276
Author: brad <chickb at gmail.com>
Date:   Sat Nov 13 10:06:30 2004 +0000

    right align output stream for date and time writes. bug #397
---
 src/value.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/value.cpp b/src/value.cpp
index 3ff4fca..ca171f7 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -318,7 +318,7 @@ namespace Exiv2 {
 
     std::ostream& DateValue::write(std::ostream& os) const
     {
-        return os << date_.year << '-'
+        return os << date_.year << '-' << std::right
                << std::setw(2) << std::setfill('0') << date_.month << '-'
                << std::setw(2) << std::setfill('0') << date_.day;
     }
@@ -429,7 +429,7 @@ namespace Exiv2 {
         char plusMinus = '+';
         if (time_.tzHour < 0 || time_.tzMinute < 0) plusMinus = '-';
         
-        return os 
+        return os << std::right
            << std::setw(2) << std::setfill('0') << time_.hour << ':'
            << std::setw(2) << std::setfill('0') << time_.minute << ':'
            << std::setw(2) << std::setfill('0') << time_.second << plusMinus

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list