Remove typedef to Dictionary::const_iterator

main
Luis Díaz Más 4 years ago
parent 9b2e46ce6c
commit 75bf666d3b

@ -69,9 +69,3 @@ OptionOutput( "Building unit tests: " EXIV2_BUILD_UNIT_TESTS
OptionOutput( "Building doc: " EXIV2_BUILD_DOC ) OptionOutput( "Building doc: " EXIV2_BUILD_DOC )
OptionOutput( "Building with coverage flags: " BUILD_WITH_COVERAGE ) OptionOutput( "Building with coverage flags: " BUILD_WITH_COVERAGE )
OptionOutput( "Using ccache: " BUILD_WITH_CCACHE ) OptionOutput( "Using ccache: " BUILD_WITH_CCACHE )
message( STATUS "------------------------------------------------------------------" )
message(STATUS " WARNING: Deprecated features: EPS, Video, Ssh")
message( STATUS "------------------------------------------------------------------" )

@ -366,10 +366,6 @@ namespace Exiv2 {
@brief typedef for Dictionary* @brief typedef for Dictionary*
*/ */
typedef Dictionary* Dictionary_p; typedef Dictionary* Dictionary_p;
/*!
@brief typedef for Dictionary iterator
*/
typedef Dictionary::const_iterator Dictionary_i;
/*! /*!
@brief typedef for string set (unique strings) @brief typedef for string set (unique strings)

@ -2100,7 +2100,7 @@ namespace Exiv2 {
throw Error(kerFileOpenFailed, "http",Exiv2::Internal::stringFormat("%d",serverCode), hostInfo_.Path); throw Error(kerFileOpenFailed, "http",Exiv2::Internal::stringFormat("%d",serverCode), hostInfo_.Path);
} }
Exiv2::Dictionary_i lengthIter = response.find("Content-Length"); auto lengthIter = response.find("Content-Length");
return (lengthIter == response.end()) ? -1 : atol((lengthIter->second).c_str()); return (lengthIter == response.end()) ? -1 : atol((lengthIter->second).c_str());
} }

@ -557,9 +557,9 @@ void Exiv2::dumpLibraryInfo(std::ostream& os,const exv_grep_keys_t& keys)
Exiv2::Dictionary ns; Exiv2::Dictionary ns;
Exiv2::XmpProperties::registeredNamespaces(ns); Exiv2::XmpProperties::registeredNamespaces(ns);
for ( Exiv2::Dictionary_i it = ns.begin(); it != ns.end() ; ++it ) { for ( auto it = ns.begin(); it != ns.end() ; ++it ) {
std::string xmlns = (*it).first; std::string xmlns = it->first;
std::string uri = (*it).second; std::string uri = it->second;
output(os,keys,name,xmlns+":"+uri); output(os,keys,name,xmlns+":"+uri);
} }
#endif #endif

@ -153,7 +153,7 @@ namespace Exiv2 {
} }
// #1112 - restore dates if they lost their TZ info // #1112 - restore dates if they lost their TZ info
for ( Exiv2::Dictionary_i it = dates_.begin() ; it != dates_.end() ; ++it ) { for ( auto it = dates_.begin() ; it != dates_.end() ; ++it ) {
std::string sKey = it->first; std::string sKey = it->first;
Exiv2::XmpKey key(sKey); Exiv2::XmpKey key(sKey);
if ( xmpData_.findKey(key) != xmpData_.end() ) { if ( xmpData_.findKey(key) != xmpData_.end() ) {

Loading…
Cancel
Save