Kaynağa Gözat

fix more bad renamings

Kolja Strohm 1 ay önce
ebeveyn
işleme
a31ea19be3
1 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 6 6
      File.cpp

+ 6 - 6
File.cpp

@@ -175,7 +175,7 @@ void File::write(const char* bytes, int len) // writes bytes to file
     {
         key->setPos(getSPosition());
         Bytes* n = new Bytes(bytes, len);
-        key->encode2(dynamic_cast<Bytes*>(n->getThis()));
+        key->encode(dynamic_cast<Bytes*>(n->getThis()));
         stream->write(n->getBytes(), len);
         n->release();
     }
@@ -201,7 +201,7 @@ void File::read(char* bytes, int len) // reads bytes from file
             key->setPos(tmp);
             Bytes* n = new Bytes();
             n->setBytesZ(bytes, len);
-            key->decode2(n);
+            key->decode(n);
         }
     }
     tmpLBPos = 7;
@@ -223,7 +223,7 @@ Text* File::readLine() // reads a line
             key->setPos(tmp);
             Bytes* n = new Bytes();
             n->setBytesZ(&c, 1);
-            key->decode2(n);
+            key->decode(n);
         }
         if (c) ret->append(&c, 1);
     }
@@ -241,7 +241,7 @@ void File::close() // closes the file
         {
             key->setPos(getSPosition());
             Bytes* n = new Bytes(&tmpSByte, 1);
-            key->encode2(dynamic_cast<Bytes*>(n->getThis()));
+            key->encode(dynamic_cast<Bytes*>(n->getThis()));
             stream->write(n->getBytes(), 1);
             n->release();
         }
@@ -323,7 +323,7 @@ bool File::getNextBit(bool& bit) // read file bit by bit
             key->setPos(tmp);
             Bytes* n = new Bytes();
             n->setBytesZ(&tmpLByte, 1);
-            key->decode2(n);
+            key->decode(n);
         }
     }
     tmpLBPos++;
@@ -343,7 +343,7 @@ bool File::setNextBit(bool bit) // write file bit by bit
         {
             key->setPos(getSPosition());
             Bytes* n = new Bytes(&tmpSByte, 1);
-            key->encode2(dynamic_cast<Bytes*>(n->getThis()));
+            key->encode(dynamic_cast<Bytes*>(n->getThis()));
             stream->write(n->getBytes(), 1);
             n->release();
         }