diff options
author | joerg <joerg@pkgsrc.org> | 2017-09-25 22:31:25 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-09-25 22:31:25 +0000 |
commit | 5d14c8918ef3d043f2c40568b691420f5d2aefd7 (patch) | |
tree | c86b9b0b768aab9cc46725f68167066b9ca6a49d /geography/opencpn/patches/patch-src_printtable.cpp | |
parent | 0646e4ffd855dfdd7da1924144ba069ee6809f00 (diff) | |
download | pkgsrc-5d14c8918ef3d043f2c40568b691420f5d2aefd7.tar.gz |
Reduce namespace pollution.
Diffstat (limited to 'geography/opencpn/patches/patch-src_printtable.cpp')
-rw-r--r-- | geography/opencpn/patches/patch-src_printtable.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/geography/opencpn/patches/patch-src_printtable.cpp b/geography/opencpn/patches/patch-src_printtable.cpp new file mode 100644 index 00000000000..a9d70a3e89f --- /dev/null +++ b/geography/opencpn/patches/patch-src_printtable.cpp @@ -0,0 +1,24 @@ +$NetBSD: patch-src_printtable.cpp,v 1.3 2017/09/25 22:31:25 joerg Exp $ + +Repeat after me: I don't know what 3rd party headers are doing, so I +won't inflict my namespace decisions on them. + +--- src/printtable.cpp.orig 2017-09-25 20:13:02.634455468 +0000 ++++ src/printtable.cpp +@@ -28,7 +28,6 @@ + #include <sstream> + #include <vector> + #include <algorithm> +-using namespace std; + + #include "wx/wxprec.h" + +@@ -74,6 +73,8 @@ using namespace std; + + #include "printtable.h" + ++using namespace std; ++ + void PrintCell::Init( const wxString& _content, wxDC* _dc, int _width, int _cellpadding, bool _bold_font ) + { + bold_font = _bold_font; |