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

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:46:26 UTC 2017


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

The following commit has been merged in the master branch:
commit f02b94a6b40b9947d7ab4a7e8b342eddd910dc8f
Author: Robin Mills <robin at clanmills.com>
Date:   Fri Apr 22 12:34:04 2016 +0000

    #1169.  Code simplication/clarification.
---
 include/exiv2/exv_msvc.h |  3 +--
 samples/exifprint.cpp    | 34 +++++++++++++++++++---------------
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/include/exiv2/exv_msvc.h b/include/exiv2/exv_msvc.h
index aaec995..7c0fdeb 100644
--- a/include/exiv2/exv_msvc.h
+++ b/include/exiv2/exv_msvc.h
@@ -84,8 +84,7 @@
 #endif /* !EXV_COMMERCIAL_VERSION */
 
 /* Define Windows unicode path support. */
-/* #undef EXV_UNICODE_PATH */
-
+/* #define EXV_UNICODE_PATH 1 */
 
 /* Define to `const' or to empty, depending on the second argument of `iconv'. */
 /* #undef ICONV_ACCEPTS_CONST_INPUT */
diff --git a/samples/exifprint.cpp b/samples/exifprint.cpp
index 59d968a..468f700 100644
--- a/samples/exifprint.cpp
+++ b/samples/exifprint.cpp
@@ -8,28 +8,31 @@
 #include <iomanip>
 #include <cassert>
 
-#ifdef EXV_UNICODE_PATH
-#define  TCHAR    wchar_t
-#define  _tstrcmp wcscmp
-#define  _T(s)    L ##s
+#ifdef  EXV_UNICODE_PATH
+#define _tchar      wchar_t
+#define _tstrcmp    wcscmp
+#define _t(s)       L##s
+#define _tcout      wcout
+#define _tmain      wmain
 #else
-#define TCHAR    char
-#define _tstrcmp strcmp
-#define _T(s)    s
-#define wcout    cout
-#define wmain main
+#define _tchar      char
+#define _tstrcmp    strcmp
+#define _t(s)       s
+#define _tcout      cout
+#define _tmain      main
 #endif
-int wmain(int argc, TCHAR* const argv[])
+
+int _tmain(int argc, _tchar* const argv[])
 try {
-    TCHAR* prog = argv[0];
-    TCHAR* file = argv[1];
+    const _tchar* prog = argv[0];
+    const _tchar* file = argv[1];
 
     if (argc != 2) {
-        std::wcout << _T("Usage: ") << prog << _T(" file") << std::endl;
+        std::_tcout << _t("Usage: ") << prog << _t(" [ file | --version ]") << std::endl;
         return 1;
     }
 
-    if ( _tstrcmp(file,_T("--version")) == 0 ) {
+    if ( _tstrcmp(file,_t("--version")) == 0 ) {
     	exv_grep_keys_t keys;
     	Exiv2::dumpLibraryInfo(std::cout,keys);
     	return 0;
@@ -41,9 +44,10 @@ try {
 
     Exiv2::ExifData &exifData = image->exifData();
     if (exifData.empty()) {
-        std::string error("No Exif data found in the file");
+        std::string error("No Exif data found in file");
         throw Exiv2::Error(1, error);
     }
+
     Exiv2::ExifData::const_iterator end = exifData.end();
     for (Exiv2::ExifData::const_iterator i = exifData.begin(); i != end; ++i) {
         const char* tn = i->typeName();

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list