Encryption, Decryption works

This commit is contained in:
amazing-username
2017-04-25 15:17:19 -05:00
parent fbee689234
commit 222f0c607b
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ public:
protected:
void setMessage(const std::string&);
std::string message;
std::fstream ioEvent;
std::string message{};
std::fstream ioEvent{};
};
#endif
+1 -1
View File
@@ -65,7 +65,7 @@ std::string Decryption::cstringToString(char tmp[], const int& SIZE)
unsigned short getTwoNumberedKey(unsigned short& number)
{
std::string wholeNumber = std::to_string(number);
std::string wholeNumber{std::to_string(number)};
char hundred[] = {wholeNumber.at(0)};
char ten[] = {wholeNumber.at(1)};
char one[] {wholeNumber.at(2)};
+2 -2
View File
@@ -5,9 +5,9 @@
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
MessagingControls* stuff = new MessagingControls;;
MessagingControls stuff{};
stuff->show();
stuff.show();
return app.exec();
}
+3 -3
View File
@@ -67,10 +67,10 @@ private:
std::string grabCryptionText();
unsigned short mainWindowHeight = 450;
unsigned short mainWindowWidth = 550;
int mainWindowHeight{450};
int mainWindowWidth{550};
bool cryptionChoice;
bool cryptionChoice{};
};
#endif