From d00212f4f681f1ff93b580c82bc9b29154b8b8cc Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Sat, 11 Apr 2015 08:09:06 +0000 Subject: [PATCH] Fixing typos. --- samples/exiv2json.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/exiv2json.cpp b/samples/exiv2json.cpp index 3dbb732a..4bf35d5c 100644 --- a/samples/exiv2json.cpp +++ b/samples/exiv2json.cpp @@ -78,8 +78,8 @@ Jzon::Node& addToTree(Jzon::Node& r1,Token token) if ( r1.IsObject() ) { Jzon::Object& o1 = r1.AsObject(); - if ( !o1.Has(key) ) o1.Add(key,empty); - return o1.Get(key); + if ( !o1.Has(key) ) o1.Add(key,empty); + return o1.Get(key); } else if ( r1.IsArray() ) { Jzon::Array& a1 = r1.AsArray(); while ( a1.GetCount() <= index ) a1.Add(empty); @@ -238,8 +238,8 @@ void fileSystemPush(const char* path,Jzon::Node& nfs) int main(int argc, char* const argv[]) try { if (argc < 2 || argc > 3) { - std::cout << "Usage: " << argv[0] << " [-option] file\n"; - std::cout << "Option: all | exif | iptc | xmp | filesystem" << argv[0] << " [option] file\n"; + std::cout << "Usage: " << argv[0] << " [-option] file" << std::endl; + std::cout << "Option: all | exif | iptc | xmp | filesystem" << std::endl; return 1; } const char* path = argv[argc-1];