summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2013-04-21 23:31:03 +0200
committerTomaž Vajngerl <quikee@gmail.com>2013-04-21 23:31:03 +0200
commit8ecf0d45d8301b95385eda64671df828c3003c62 (patch)
tree0d45cef1c18c9641cbea9fd99a2c16bff911ef56 /vcl
parent2fa3cde17c90eb0eb7e9fda93909b02a2aebf1c9 (diff)
Add jpegint.h to jpeg module. Fix warning in Exif.
Change-Id: I098ad140d013f1bda057416b2e0622bc038d2a30
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/jpeg/Exif.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/filter/jpeg/Exif.cxx b/vcl/source/filter/jpeg/Exif.cxx
index d15cc4c757e6..167cf54b71fc 100644
--- a/vcl/source/filter/jpeg/Exif.cxx
+++ b/vcl/source/filter/jpeg/Exif.cxx
@@ -62,7 +62,7 @@ sal_Int32 Exif::getRotation()
case LEFT_BOTTOM:
return 900;
default:
- return 0;
+ break;
}
return 0;
}
@@ -93,7 +93,6 @@ bool Exif::write(SvStream& rStream)
bool Exif::processJpeg(SvStream& rStream, bool bSetValue)
{
sal_uInt16 aMagic16;
- sal_uInt8 aMarker;
sal_uInt16 aLength;
rStream.Seek(STREAM_SEEK_TO_END);
@@ -113,7 +112,9 @@ bool Exif::processJpeg(SvStream& rStream, bool bSetValue)
while(true)
{
+ sal_uInt8 aMarker = 0xD9;
sal_Int32 aCount;
+
for (aCount = 0; aCount < 7; aCount++)
{
rStream >> aMarker;