AudioStego icon indicating copy to clipboard operation
AudioStego copied to clipboard

header extension bad way

Open IgorTheSimplifier opened this issue 6 years ago • 1 comments

trimming your extension is bad way. You need to add whole boost just to perform one action. From the structure of your algorithm is way better to change it in such way (no need for boos)

vector ext; for (int i = 4; i < 8; i++) { if (header[i] == ' ') { break; } ext.push_back(header[i]); }

mExtension = std::string(ext.begin(), ext.end());

IgorTheSimplifier avatar Apr 25 '18 18:04 IgorTheSimplifier

Feel free to make a pull request. I did this when i was in school, my code practices weren't the best

danielcardeenas avatar Apr 30 '18 14:04 danielcardeenas