Loading src/testing/test_TEDF.cpp +4 −1 Original line number Original line Diff line number Diff line Loading @@ -73,7 +73,7 @@ int main(int argc, char **argv) { legacy_file = string(argv[2]); legacy_file = string(argv[2]); hdf5_file = string(argv[3]); hdf5_file = string(argv[3]); } } ScattererConfiguration *a, *b, *c; ScattererConfiguration *a = NULL, *b = NULL, *c = NULL; try { a = ScattererConfiguration::from_dedfb(dedfb_file); } try { a = ScattererConfiguration::from_dedfb(dedfb_file); } catch (...) { catch (...) { printf("Failed to open legacy configuration file.\n"); printf("Failed to open legacy configuration file.\n"); Loading Loading @@ -104,5 +104,8 @@ int main(int argc, char **argv) { printf("Configuration objects c and b are different.\n"); printf("Configuration objects c and b are different.\n"); result += 100; result += 100; } } if (a != NULL) delete a; if (b != NULL) delete b; if (c != NULL) delete c; return result; return result; } } Loading
src/testing/test_TEDF.cpp +4 −1 Original line number Original line Diff line number Diff line Loading @@ -73,7 +73,7 @@ int main(int argc, char **argv) { legacy_file = string(argv[2]); legacy_file = string(argv[2]); hdf5_file = string(argv[3]); hdf5_file = string(argv[3]); } } ScattererConfiguration *a, *b, *c; ScattererConfiguration *a = NULL, *b = NULL, *c = NULL; try { a = ScattererConfiguration::from_dedfb(dedfb_file); } try { a = ScattererConfiguration::from_dedfb(dedfb_file); } catch (...) { catch (...) { printf("Failed to open legacy configuration file.\n"); printf("Failed to open legacy configuration file.\n"); Loading Loading @@ -104,5 +104,8 @@ int main(int argc, char **argv) { printf("Configuration objects c and b are different.\n"); printf("Configuration objects c and b are different.\n"); result += 100; result += 100; } } if (a != NULL) delete a; if (b != NULL) delete b; if (c != NULL) delete c; return result; return result; } }