changed code style

This commit is contained in:
john30
2015-02-21 13:18:36 +01:00
parent 0bfc63c13a
commit 41cd38ab75
20 changed files with 218 additions and 217 deletions
+3 -3
View File
@@ -140,18 +140,18 @@ int main(int argc, char* argv[])
if (result != RESULT_OK)
cout << "unable to open " << opt.device << ": " << getResultCode(result) << endl;
if (device->isValid() == false)
if (!device->isValid())
cout << "device " << opt.device << " not available" << endl;
else {
cout << "device opened" << endl;
fstream file(opt.dumpFile, ios::in | ios::binary);
if (file.is_open() == true) {
if (file.is_open()) {
while (true) {
unsigned char byte = file.get();
if (file.eof() == true)
if (file.eof())
break;
cout << hex << setw(2) << setfill('0')
<< static_cast<unsigned>(byte) << endl;