Skip to content

Commit

Permalink
move initialization up
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Feb 5, 2023
1 parent 0d353ac commit 60fcb9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/basicio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,7 @@ void XPathIo::ReadDataUri(const std::string& path) {
}

#else
XPathIo::XPathIo(const std::string& orgPath) : FileIo(XPathIo::writeDataToFile(orgPath)) {
tempFilePath_ = path();
XPathIo::XPathIo(const std::string& orgPath) : FileIo(XPathIo::writeDataToFile(orgPath)), tempFilePath_(path()) {
}

XPathIo::~XPathIo() {
Expand Down
5 changes: 2 additions & 3 deletions src/tiffvisitor_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,9 @@ TiffEncoder::TiffEncoder(ExifData exifData, const IptcData& iptcData, const XmpD
pRoot_(pRoot),
isNewImage_(isNewImage),
pPrimaryGroups_(pPrimaryGroups),
byteOrder_(pHeader->byteOrder()),
origByteOrder_(byteOrder_),
findEncoderFct_(findEncoderFct) {
byteOrder_ = pHeader->byteOrder();
origByteOrder_ = byteOrder_;

encodeIptc();
encodeXmp();

Expand Down

0 comments on commit 60fcb9d

Please sign in to comment.