Skip to content

Commit

Permalink
Fixed problem with protocol file outputs that prevented utf8 characte…
Browse files Browse the repository at this point in the history
…rs from coming through.
  • Loading branch information
billvaglienti committed Apr 14, 2020
1 parent b7068e1 commit 54d467c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions protocolfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ bool ProtocolFile::flush(void)
}

// The actual interesting contents
file.write(qPrintable(contents));
file.write(qUtf8Printable(contents));

// And the file
file.close();
Expand Down Expand Up @@ -557,10 +557,10 @@ bool ProtocolHeaderFile::flush(void)
}

// The actual interesting contents
file.write(qPrintable(contents));
file.write(qUtf8Printable(contents));

// close the file out
file.write(qPrintable(getClosingStatement()));
file.write(qUtf8Printable(getClosingStatement()));

// And the file
file.close();
Expand Down Expand Up @@ -705,10 +705,10 @@ bool ProtocolSourceFile::flush(void)
}

// The actual interesting contents
file.write(qPrintable(contents));
file.write(qUtf8Printable(contents));

// Close it out
file.write(qPrintable(getClosingStatement()));
file.write(qUtf8Printable(getClosingStatement()));

// And the file
file.close();
Expand Down
2 changes: 1 addition & 1 deletion protocolparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <iostream>

// The version of the protocol generator is set here
const QString ProtocolParser::genVersion = "2.22.b";
const QString ProtocolParser::genVersion = "2.22.c";

/*!
* \brief ProtocolParser::ProtocolParser
Expand Down

0 comments on commit 54d467c

Please sign in to comment.