summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-25 10:46:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-25 15:58:23 +0000
commit2768b20dfd1a9f05d0dd5167b111e58b9126ff64 (patch)
tree5432fc0aa97b314059be48c49fbc521d42a284b4 /hwpfilter
parentc17e41b2aa5731f7a36a78b0a051ad44bafae014 (diff)
cppcheck: methods can be const
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hstream.cpp2
-rw-r--r--hwpfilter/source/hstream.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/hwpfilter/source/hstream.cpp b/hwpfilter/source/hstream.cpp
index c7ece7d679d9..c6b8c24a2152 100644
--- a/hwpfilter/source/hstream.cpp
+++ b/hwpfilter/source/hstream.cpp
@@ -70,7 +70,7 @@ int HStream::skipBytes(int aToSkip)
}
-int HStream::available()
+int HStream::available() const
{
return size - pos;
}
diff --git a/hwpfilter/source/hstream.h b/hwpfilter/source/hstream.h
index f8aeadecc5d6..47bbb7f4ac66 100644
--- a/hwpfilter/source/hstream.h
+++ b/hwpfilter/source/hstream.h
@@ -54,7 +54,7 @@ class HStream
/**
* @returns Size of remained stream
*/
- int available();
+ int available() const;
/**
* remove the stream from this object.
*/