summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-09 19:00:55 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-09 19:19:59 (GMT)
commit644051bad4ce7b088ea8af07c9b82a5920c96f4b (patch)
tree5c18f3cee950a7e9a683e6cbb666ec0ea128ee0e /Swiften/Compress/ZLibCompressor.h
parentb3b77f1d4a85a9a933b1a913a90b57a0e2db42a3 (diff)
downloadswift-644051bad4ce7b088ea8af07c9b82a5920c96f4b.zip
swift-644051bad4ce7b088ea8af07c9b82a5920c96f4b.tar.bz2
Enabled & fixed some more C++ warnings.
Diffstat (limited to 'Swiften/Compress/ZLibCompressor.h')
-rw-r--r--Swiften/Compress/ZLibCompressor.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/Swiften/Compress/ZLibCompressor.h b/Swiften/Compress/ZLibCompressor.h
index d1d835b..7fe5387 100644
--- a/Swiften/Compress/ZLibCompressor.h
+++ b/Swiften/Compress/ZLibCompressor.h
@@ -4,8 +4,7 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
-#ifndef SWIFTEN_ZLibCompressor_H
-#define SWIFTEN_ZLibCompressor_H
+#pragma once
#include <cassert>
@@ -15,11 +14,7 @@
namespace Swift {
class ZLibCompressor : public ZLibCodecompressor {
public:
- ZLibCompressor() {
- int result = deflateInit(&stream_, COMPRESSION_LEVEL);
- assert(result == Z_OK);
- (void) result;
- }
+ ZLibCompressor();
~ZLibCompressor() {
deflateEnd(&stream_);
@@ -33,5 +28,3 @@ namespace Swift {
static const int COMPRESSION_LEVEL = 9;
};
}
-
-#endif