summaryrefslogtreecommitdiff
path: root/plugins/CountryFlags/src/huffman.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-21 14:14:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-21 14:14:22 +0000
commit0999d9f9a1654c4fcbd1fc4f4fcf27080dd979e2 (patch)
tree5ab8420935b0ee704430e9659a857411148ff621 /plugins/CountryFlags/src/huffman.cpp
parentd8eb1ed0d9f8a694629af5251840e9c6347c9eb3 (diff)
- a bit less crazy implementation of flags;
- fix for icons' names in icolib git-svn-id: http://svn.miranda-ng.org/main/trunk@2023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CountryFlags/src/huffman.cpp')
-rw-r--r--plugins/CountryFlags/src/huffman.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CountryFlags/src/huffman.cpp b/plugins/CountryFlags/src/huffman.cpp
index c460e9a66e..ee8680f558 100644
--- a/plugins/CountryFlags/src/huffman.cpp
+++ b/plugins/CountryFlags/src/huffman.cpp
@@ -299,7 +299,7 @@ static void _Huffman_MakeTree( huff_sym_t *sym, huff_bitstream_t *stream )
root = (huff_encodenode_t *) 0;
nodes_left = num_symbols;
next_idx = num_symbols;
- while( nodes_left > 1 )
+ while ( nodes_left > 1 )
{
/* Find the two lightest nodes */
node_1 = (huff_encodenode_t *) 0;
@@ -435,7 +435,7 @@ int Huffman_Compress( unsigned char *in, unsigned char *out,
}
}
}
- while( swaps );
+ while ( swaps );
/* Encode input stream */
for ( k = 0; k < insize; ++ k )
@@ -491,7 +491,7 @@ void Huffman_Uncompress( unsigned char *in, unsigned char *out,
{
/* Traverse tree until we find a matching leaf node */
node = root;
- while( node->Symbol < 0 )
+ while ( node->Symbol < 0 )
{
/* Get next node */
if ( _Huffman_ReadBit( &stream ))