summaryrefslogtreecommitdiff
path: root/quacker/quacker.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2023-07-17 15:49:09 -0500
committerJohn Fultz <jfultz@wolfram.com>2023-07-17 16:20:01 -0500
commit3b9e9b6df1d124b29bfd3715b6cb12cdee18b2ea (patch)
tree9ee43ed8bc403f7f9b444ecb505dbcd5afb11d75 /quacker/quacker.cpp
parent741ba7f9223071da84146069851b48d2344ac03e (diff)
Fix up std:: namespace hygiene.
* Remove all uses of `using namespace std` from header files (although a few specific cases of things like `using std::vector` remain) * Move all existing uses of `using namespace std` in cpp files to after the header includes * Make coordinating changes so it builds again. Qt6 builds on Windows were breaking because of namespace collision between std::byte and some version of `byte` in one of Qt's namespaces. That breakage is now fixed. It would be good to systematically clean up all `using` declarations in header files to ensure nothing is leaking out, but that's for another time.
Diffstat (limited to 'quacker/quacker.cpp')
-rw-r--r--quacker/quacker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/quacker/quacker.cpp b/quacker/quacker.cpp
index a244586..7ab54c0 100644
--- a/quacker/quacker.cpp
+++ b/quacker/quacker.cpp
@@ -19,8 +19,6 @@
#include <algorithm>
#include <iostream>
-using namespace std;
-
#include <QtWidgets>
#include <game.h>
@@ -55,6 +53,8 @@ using namespace std;
#include "widgetfactory.h"
#include "view.h"
+using namespace std;
+
const int kExtraPlaysToKibitz = 15;
TopLevel::TopLevel(QWidget *parent)