exiv2/samples
Luis Díaz Más f30022d73d
Fix issues detected with PVS-Studio + other little improvements (#1689)
* avoid re-declaration of constant variables

* Replace pthreads critical section with std::mutex

* ci - better naming

* cmake - increase minimum version to 3.11. Use project DESCRIPTION

* fix - do not treat string::find() return type as bool

* remove conditions that were always true

* remove condition that were always false

* Remove EXV_HAVE_GMTIME_R which is not used anymore

* pixelWidth_ was inherited from Exiv2::Image

The width & height variables in the TiffImage class need to be mutable
to be able to change their values on the getters pixelHeight() and
pixelWidth() ... Do not ask me why ...

* Remove superfluous if

* pvs:V766 item with identical key added already

* pvs:V730 not all members were initialized (time)

* pvs:V730 not all members are initialized

* pvs:v668 no point in testing pointer against null after new

* pvs:V1048 variable assigned the same value

* replace c-style dynamic vector with std one

* pvs:547 fakeData is always true

* Remove useless constructor in derived class

* pvs:V690 modern way to disable copy-ctor

* Replace malloc/free with new/delete. No need to check for null

* pvs:V1028 cast operands and not result

* Remove custom MIN/MAX functions

* pvs:V595 pointer used before verified against null

* pvs: index used before being checked

* pvs:V1028 possible overflow. Cast operands

* pvs:v575 potential null pointer passed to other functions

* pvs:V547 deal with always true/false expressions

* pvs:V560 part of conditional expressions always false or true

* pvs:V701 possible break in realloc -> move to std::vector

* Make some classes 'final'

* Replace sprintf with std::to_string()

* fix compilation on windows
2021-06-01 12:39:10 +02:00
..
addmoddel.cpp clang-tidy: use nullptr 2021-05-26 08:31:45 +02:00
CMakeLists.txt Add CTest support 2021-05-15 16:58:24 +02:00
conntest.cpp clang-tidy: empty() conversions 2021-05-12 07:12:15 +02:00
convert-test.cpp cpp: Replace auto_ptr by unique_ptr 2021-04-15 06:56:11 +02:00
easyaccess-test.cpp clang-tidy: use using 2021-05-09 17:42:51 +02:00
exifcomment.cpp cpp: Replace auto_ptr by unique_ptr 2021-04-15 06:56:11 +02:00
exifdata-test.cpp Replace many of the iterators types with auto 2021-04-19 10:43:46 +02:00
exifdata.cpp clang-tidy: use using 2021-05-09 17:42:51 +02:00
exifprint.cpp clang-tidy: don't use else after return 2021-05-15 17:32:56 +02:00
exifvalue.cpp cpp: Replace auto_ptr by unique_ptr 2021-04-15 06:56:11 +02:00
exiv2json.cpp clang-tidy: use nullptr 2021-05-26 08:31:45 +02:00
geotag.cpp Fix issues detected with PVS-Studio + other little improvements (#1689) 2021-06-01 12:39:10 +02:00
getopt-test.cpp clang-tidy: use C++ casting 2021-05-20 07:29:02 +02:00
httptest.cpp fix_1508_enableBMMF_effort2 2021-04-03 11:03:31 +01:00
ini-test.cpp fix_1508_enableBMMF_effort2 2021-04-03 11:03:31 +01:00
ini-test.ini #1034 Added exiv2 config file support for lens recognition. 2016-03-25 08:12:16 +00:00
iotest.cpp clang-tidy: use nullptr 2021-05-26 08:31:45 +02:00
iptceasy.cpp cpp: Replace auto_ptr by unique_ptr 2021-04-15 06:56:11 +02:00
iptcprint.cpp Replace many of the iterators types with auto 2021-04-19 10:43:46 +02:00
iptctest.cpp clang-tidy: use auto 2021-05-17 21:52:03 +02:00
Jzon.cpp clang-tidy: use nullptr 2021-05-26 08:31:45 +02:00
Jzon.h clang-tidy: remove pointless member init 2021-05-19 23:32:29 -07:00
key-test.cpp clang-tidy: run through performance checks 2021-05-18 14:30:08 +02:00
largeiptc-test.cpp clang-tidy: use nullptr 2021-05-26 08:31:45 +02:00
metacopy.cpp clang-tidy: simplify boolean expressions 2021-05-09 17:30:46 +02:00
metacopy.hpp clang-tidy: use override 2021-05-11 17:39:59 +02:00
mmap-test.cpp clang-tidy: use C++ casting 2021-05-20 07:29:02 +02:00
mrwthumb.cpp Replace many of the iterators types with auto 2021-04-19 10:43:46 +02:00
mt-test.cpp fix_1508_enableBMMF_effort2 2021-04-03 11:03:31 +01:00
path-test.cpp fix_1508_enableBMMF_effort2 2021-04-03 11:03:31 +01:00
prevtest.cpp clang-tidy: range for loop conversions 2021-05-03 14:50:04 +02:00
remotetest.cpp Replace many of the iterators types with auto 2021-04-19 10:43:46 +02:00
stringto-test.cpp clang-tidy: avoid global non const variables 2021-05-25 08:43:27 +02:00
taglist.cpp clang-tidy: run through performance checks 2021-05-18 14:30:08 +02:00
tiff-test.cpp clang-tidy: use nullptr 2021-05-26 08:31:45 +02:00
tiffaddpath-test.cpp more constexpr 2021-05-19 14:11:42 +02:00
toexv.cpp fix_1508_enableBMMF_effort2 2021-04-03 11:03:31 +01:00
toexv.hpp cpp: Replace auto_ptr by unique_ptr 2021-04-15 06:56:11 +02:00
werror-test.cpp fix_1508_enableBMMF_effort2 2021-04-03 11:03:31 +01:00
write2-test.cpp Replace many of the iterators types with auto 2021-04-19 10:43:46 +02:00
write-test.cpp Replace many of the iterators types with auto 2021-04-19 10:43:46 +02:00
xmpdump.cpp cpp: Replace auto_ptr by unique_ptr 2021-04-15 06:56:11 +02:00
xmpparse.cpp clang-tidy: range for loop conversions 2021-05-03 14:50:04 +02:00
xmpparser-test.cpp clang-tidy: range for loop conversions 2021-05-03 14:50:04 +02:00
xmpprint.cpp clang-tidy: range for loop conversions 2021-05-03 14:50:04 +02:00
xmpsample.cpp clang-tidy: range for loop conversions 2021-05-03 14:50:04 +02:00