summaryrefslogtreecommitdiff
path: root/package/inc/ByteGrabber.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-12 09:42:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-12 11:49:03 +0000
commit2c2e80da68efcee5bffdb61d9c078f9360a639a4 (patch)
treeecd55cd5c97f1dbe2580d033c0fcda6568ff849f /package/inc/ByteGrabber.hxx
parentc928840ef2a41ca373ad9070d8e9160c216260da (diff)
callcatcher: remove newly unused code
and rework reads to just return the read value Change-Id: I5d2f01064465c65859ec4ba031ec9dfa16403487
Diffstat (limited to 'package/inc/ByteGrabber.hxx')
-rw-r--r--package/inc/ByteGrabber.hxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/package/inc/ByteGrabber.hxx b/package/inc/ByteGrabber.hxx
index 26df1b19a131..2791e0bfd6c7 100644
--- a/package/inc/ByteGrabber.hxx
+++ b/package/inc/ByteGrabber.hxx
@@ -58,12 +58,16 @@ public:
sal_Int64 SAL_CALL getLength( )
throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- ByteGrabber& ReadInt8(sal_Int8& rInt8);
- ByteGrabber& ReadInt16(sal_Int16& rInt16);
- ByteGrabber& ReadInt32(sal_Int32& rInt32);
- ByteGrabber& ReadUInt8(sal_uInt8& ruInt8);
- ByteGrabber& ReadUInt16(sal_uInt16& ruInt16);
- ByteGrabber& ReadUInt32(sal_uInt32& ruInt32);
+ sal_uInt16 ReadUInt16();
+ sal_uInt32 ReadUInt32();
+ sal_Int16 ReadInt16()
+ {
+ return static_cast<sal_Int16>(ReadUInt16());
+ }
+ sal_Int32 ReadInt32()
+ {
+ return static_cast<sal_Int32>(ReadUInt32());
+ }
};
#endif