Commit Graph

98 Commits

Author SHA1 Message Date
Rosen Penev
b8712188bb clang-tidy: use auto
Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-17 21:52:03 +02:00
Rosen Penev
c73dfa0106 clang-tidy: use uppercase numeric literals
Found with readability-uppercase-literal-suffix

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-16 11:27:49 +02:00
Rosen Penev
fdf9d3799c clang-tidy: don't use else after return
Found with llvm-else-after-return

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-15 17:32:56 +02:00
Rosen Penev
1b9b77c51f clang-tidy: add ending namespace comments
Found with google-readability-namespace-comments

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-14 17:34:09 +02:00
Rosen Penev
e93ad82734 clang-tidy: use braced init list
Found with modernize-return-braced-init-list

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-03 06:55:09 +02:00
Robin Mills
d632988bbd Massive code prolog cleanup. 2021-03-17 13:34:21 +00:00
Jan Tojnar
48f2c9dbba
cmake: Fix paths with absolute GNUInstallDirs
It is not generally true that `CMAKE_INSTALL_<dir>` variables are relative paths:

https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files
https://github.com/jtojnar/cmake-snips#assuming-cmake_install_dir-is-relative-path

Let's join them properly as paths, not strings.

On Windows, the absolute paths will likely remain unsupported as neither the CMake function,
nor the C++ code is able to detect absolute paths.

Signed-off-by: Jan Tojnar <jtojnar@gmail.com>
2020-09-05 11:18:46 +02:00
Luis Díaz Más
d1c2e2f64f bindtextdomain point to relative path to bin directory 2018-11-11 12:27:26 +01:00
Luis Díaz Más
417ad89e4b Pass argument by const reference 2018-11-07 23:17:26 +01:00
Dan Čermák
962962a8e9 Port Iptc::printStructure & getUshort to slices API
This fixes #211, #210, #209
2018-10-11 14:06:16 +02:00
Dan Čermák
98bca06592 Add Slices: views of STL containers & C-arrays and add unit tests
This commit adds a very simple implementation of std::span but with
mandatory range checks and only the most essential functionality.
2018-10-11 14:06:16 +02:00
Luis Díaz Más
989acd18c7 Fix cppcheck issues: uninitMemberVar & uninitVar 2018-10-11 13:40:03 +02:00
Dan Čermák
916c535d94 clang-format floatToRationalCast 2018-09-17 10:03:02 +02:00
Dan Čermák
6fd1c5b4bf [types] Fix check for finite numbers on Linux
On Linux we were merely checking whether f is finite, but that does
not cover the case f=NaN.
=> use isfinite instead which checks whether f != inf && f != NaN
2018-09-17 10:02:55 +02:00
Luis Díaz Más
b9f913d5af Move implementation to .cpp files. Fix more issues related to visibility settings 2018-09-14 13:20:08 +02:00
Luis Díaz Más
603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
Luis Díaz Más
0bfa0168df Cleanup some of the PACKAGE_XXX variables and rely in the ones given by the project() command 2018-09-12 19:22:31 +02:00
Luis Díaz Más
980f2e9462 Use isnan(f) as an alternative to isinf() on __APPLE__ 2018-09-12 08:11:54 +02:00
Luis Díaz Más
2ae0cffe18 isinf for Visual Studio versions previous to 2013 2018-09-10 10:31:00 +02:00
Dan Čermák
11df43be78 [types] Apply Safe::abs() in floatToRationalCast & gcd
Also check for infinity in floatToRationalCast as depending on the
compiler special values of floats are converted to either
LONGMAX/LONGMIN or +/-inf
2018-08-27 17:21:16 +02:00
Luis Diaz Mas
00f86a8df4 Cleanup unused variable warnings 2018-08-24 16:45:52 +02:00
Dan Čermák
b12a868454 Add EXV_WARN_UNUSED_RESULT macro & add it to DataBuf::release()
EXV_WARN_UNUSED_RESULT is a conditional macro that expands to either
__attribute__((warn_unused_result)) on gcc & clang or to _Check_return
for MSVC
=> Compiler warns if the return value is ignored
2018-07-29 00:20:43 +02:00
Dan Čermák
1b74db8f51 [types] Add DataBuf::free()
DataBuf::release() easily cause memory leaks, when the return value is
ignored. free() provides the desired behavior, when the internal data should
just be deleted and not used further.
2018-07-28 23:50:33 +02:00
tbeu
5b5987a596 Remove obsolete EXIV2_RCSID 2017-11-19 11:17:12 +01:00
tbeu
5df8b01b77 Remove obsolete svn revision 2017-11-19 11:17:11 +01:00
Michał Walenciak
ab27bfab3c introducing getULongLong() 2017-09-21 18:15:12 +02:00
Robin Mills
559ace375b #1291 Reverting change in r4763 relating to windows.h as they break the Cygwin build. Retain changes in exiv2/exiv2.hpp and exv_msvc.h 2017-04-23 19:29:19 +00:00
Robin Mills
f36cccefa2 #1291 include header simplification 2017-04-23 17:31:57 +00:00
Robin Mills
6d5c2c3256 Getting ready to release v0.26 2017-03-08 20:42:28 +00:00
Andreas Huggel
fd80993ab0 Updated copyright notice. 2015-05-02 11:55:40 +00:00
Robin Mills
6897087279 #1039. Thank You, Torsten for raising this matter. Thank You, Phil for your help with this. 2015-03-11 10:55:05 +00:00
Robin Mills
27ef590773 Roll-back for 3355 (GSoC2013 video write code). Regrettably, this appears to cause all MSVC build to fail our test harness. I'll deal with the video13 code in a different branch. 2014-09-16 08:20:18 +00:00
Robin Mills
74e8adfa37 fix MSVC build errors for GSoC2013 VideoWrite 2014-09-07 13:51:02 +00:00
Robin Mills
66e473db32 GSoC2013 Video Write Code. Thank You, Mahesh for a lot of hard work. And Thanks to Abhinav for mentoring. Great Job, Guys. 2014-09-07 11:59:45 +00:00
Mahesh
d3e0539bac Coverity scan fixes CID : 982031 through 982054 2014-07-20 15:32:11 +00:00
Andreas Huggel
f09fceda6b Updated copyright year in a few files, version in runner.txt. 2013-12-01 12:13:42 +00:00
Robin Mills
a297d2b69e Rollback 3089 - somehow it's broken the build! 2013-07-24 05:05:52 +00:00
Robin Mills
da1ed8c536 Bumping the copyright notice in src &samples from 2012 to 2013 2013-07-24 03:12:38 +00:00
Andreas Huggel
0d397b95c7 Updated copyright message for 2012. 2012-03-22 15:19:35 +00:00
vog
115ba5a04e Improved epsimage.cpp and preview.cpp to avoid unnecessary type casts, also make some implicit type casts explicit for clarity 2011-06-29 12:16:34 +00:00
Robin Mills
ebfb513a21 Removing the casts which were regrettably added with SVN: 2525. 2011-06-29 01:02:04 +00:00
Robin Mills
b960062f90 EPS: fixed a cast and removed a useless comment. 2011-06-28 05:44:42 +00:00
Robin Mills
e2c570a1ce EPS project.
added long ul2Data(byte* buf, size_t s, ByteOrder byteOrder) to the DevStudio 64 bit build.
This rippled requiring casts to differentiate ul2Data(byte*, uint32_t,size_t) and ul2Data(byte*,size_t,size_t)
Team review requested.
2011-06-28 04:40:25 +00:00
Andreas Huggel
7770151915 Updated Copyright message for 2011. 2011-02-13 14:08:44 +00:00
Andreas Huggel
d164180d65 Bugfix (Matthias Baas) 2010-08-24 15:54:05 +00:00
Andreas Huggel
248cfb33c5 #719: Removed standard Exif tag definitions and pretty-print functions from the API. Fixed warnings in the code for Float and Double values (added for #711). 2010-08-16 13:38:06 +00:00
Andreas Huggel
55ffbd9eb9 Added DoubleValue to deal with TIFF Double values (see #711). 2010-08-05 01:46:27 +00:00
Andreas Huggel
5d24f66ebd Added static cast to prevent MSVC warning and comment highlighting non-conforming C++. 2010-07-23 15:32:03 +00:00
Andreas Huggel
bc54748634 #711: Added FloatValue to deal with TIFF Float values. (Nice one! :) 2010-07-22 02:41:02 +00:00
Andreas Huggel
06ce0d18b6 - Introduced exiv2.hpp as a wrapper to include all Exiv2 objects. (Renamed existing exiv2.hpp to exiv2app.hpp)
- Changed Sony/Minolta pretty-print function to print EV value
- Renamed rcsid.hpp to rcsid_int.hpp, do not publish it anymore
2010-06-27 10:04:39 +00:00