fix linux compile and increase version

This commit is contained in:
cDc
2017-12-09 14:53:52 +02:00
parent af81c87222
commit 87c343b4f1
4 changed files with 8 additions and 10 deletions

View File

@@ -703,7 +703,7 @@ int EXIFInfo::parseFrom(EXIFStream& stream) {
int EXIFInfo::parseFrom(const uint8_t* buf, unsigned len) {
class EXIFStreamBuffer : public EXIFStream {
public:
EXIFStreamBuffer(const uint8_t* buf, unsigned len)
explicit EXIFStreamBuffer(const uint8_t* buf, unsigned len)
: it(buf), end(buf+len) {}
bool IsValid() const override {
return it != NULL;
@@ -722,7 +722,8 @@ int EXIFInfo::parseFrom(const uint8_t* buf, unsigned len) {
private:
const uint8_t* it, * const end;
};
return parseFrom(EXIFStreamBuffer(buf, len));
EXIFStreamBuffer stream(buf, len);
return parseFrom(stream);
}
//