Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Huffman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void Huffman::encode(std::string filename) {

// Write data and table file to disk
if (!writeDataFile(filename)) return;
if (!writeTataFile(filename)) return;
if (!writeTableFile(filename)) return;

/*
LAG DENNE DELEN OM TIL EN EGEN FUNKSJON
Expand Down Expand Up @@ -263,7 +263,7 @@ bool Huffman::readTableFile(std::string fstr) {
TableEntry temp;

if (tablefile) delete tablefile;
tablefile = new Tablefile;
tablefile = new TableFile;

std::ifstream file(fstr.c_str(), std::ios::binary);

Expand Down