Fix C++ code smells

* Move "using namespace std;" from header to module file (to no longer pollute the global namespace).
* Fix inconsistency of having namespace prefix in test code.
* Add include guard to GildedRose.h.
* Avoid std::endl.
* Have consistent white-space.
This commit is contained in:
tbeu committed 2025-02-12 20:56:22 +01:00
1 parent 6c59257f27
commit 73a51ef14f
7 files changed
+22 -23

No files matched your search

@@ -3,7 +3,7 @@
TEST_CASE("GildedRoseUnitTest", "Foo")
{
vector<Item> items;
std::vector<Item> items;
items.push_back(Item("Foo", 0, 0));
GildedRose app(items);
app.updateQuality();