1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
Description: Fix build with GCC5
Origin: upstream, https://github.com/pcb2gcode/pcb2gcode/commit/e6580db4365c9f3ad42cea103382faeaf472800f
Author: Nicola Corna <nicola@corna.info>
Last-Update: 2015-11-09
--- a/svg_exporter.cpp
+++ b/svg_exporter.cpp
@@ -20,7 +20,6 @@
#include <fstream>
#include <iomanip>
-using namespace std;
#include "svg_exporter.hpp"
@@ -112,4 +111,4 @@
SVG_Exporter::copy_page()
{
cr->copy_page();
-}
\ No newline at end of file
+}
--- a/drill.cpp
+++ b/drill.cpp
@@ -24,7 +24,6 @@
#include <fstream>
#include <iomanip>
-using namespace std;
#include "drill.hpp"
@@ -34,6 +33,10 @@
#include <boost/foreach.hpp>
using std::pair;
+using std::cerr;
+using std::ios_base;
+using std::setw;
+using std::left;
ExcellonProcessor::ExcellonProcessor( string drillfile, const ivalue_t board_width ) : board_width(board_width)
{
--- a/layer.cpp
+++ b/layer.cpp
@@ -11,7 +11,6 @@
}
#include <iostream>
-using namespace std;
vector< shared_ptr<icoords> >
Layer::get_toolpaths()
--- a/ngc_exporter.cpp
+++ b/ngc_exporter.cpp
@@ -22,8 +22,12 @@
#include <boost/foreach.hpp>
#include <iostream>
+using std::cerr;
+using std::ios_base;
+using std::setw;
+using std::left;
+
#include <iomanip>
-using namespace std;
NGC_Exporter::NGC_Exporter( shared_ptr<Board> board ) : Exporter(board)
{
|