Skip to content
Snippets Groups Projects
Commit 1f1a3a06 authored by Pete Peterson's avatar Pete Peterson Committed by GitHub
Browse files

Merge pull request #18632 from mantidproject/Remove_old_c4250_warning_suppression

Remove c4250 warning suppression on MSVC
parents 3bce2091 8474c375
No related merge requests found
...@@ -6,28 +6,15 @@ ...@@ -6,28 +6,15 @@
#include "MantidGeometry/Crystal/AngleUnits.h" #include "MantidGeometry/Crystal/AngleUnits.h"
#include "MantidGeometry/Instrument.h" #include "MantidGeometry/Instrument.h"
#include "MantidKernel/BoundedValidator.h" #include "MantidKernel/BoundedValidator.h"
#include "MantidKernel/System.h"
#include <Poco/DOM/AutoPtr.h> #include <Poco/DOM/AutoPtr.h>
#include <Poco/DOM/Document.h> #include <Poco/DOM/Document.h>
#include <Poco/DOM/DOMWriter.h> #include <Poco/DOM/DOMWriter.h>
#include <Poco/DOM/Element.h> #include <Poco/DOM/Element.h>
#include <Poco/DOM/Text.h> #include <Poco/DOM/Text.h>
#ifdef _MSC_VER
// Disable a flood of warnings from Poco about inheriting from
// std::basic_istream
// See
// http://connect.microsoft.com/VisualStudio/feedback/details/733720/inheriting-from-std-fstream-produces-c4250-warning
#pragma warning(push)
#pragma warning(disable : 4250)
#endif
#include <Poco/XML/XMLWriter.h> #include <Poco/XML/XMLWriter.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#include <fstream> #include <fstream>
using namespace Mantid::Kernel; using namespace Mantid::Kernel;
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
#include <Poco/DOM/AutoPtr.h> #include <Poco/DOM/AutoPtr.h>
#include <Poco/DOM/Document.h> #include <Poco/DOM/Document.h>
#include <Poco/DOM/DOMWriter.h>
#include <Poco/DOM/Element.h> #include <Poco/DOM/Element.h>
#include <Poco/DOM/Text.h> #include <Poco/DOM/Text.h>
#include <Poco/DOM/DOMWriter.h>
#include <Poco/XML/XMLWriter.h> #include <Poco/XML/XMLWriter.h>
#include <algorithm> #include <algorithm>
......
...@@ -3,21 +3,10 @@ ...@@ -3,21 +3,10 @@
#include "MantidGeometry/DllConfig.h" #include "MantidGeometry/DllConfig.h"
#include "MantidGeometry/Instrument/ParameterMap.h" #include "MantidGeometry/Instrument/ParameterMap.h"
#include <string> #include <string>
#include <typeinfo> #include <typeinfo>
#include <vector> #include <vector>
#ifdef _MSC_VER
// Disable a flood of warnings from Poco about inheriting from
// std::basic_istream
// See
// http://connect.microsoft.com/VisualStudio/feedback/details/733720/inheriting-from-std-fstream-produces-c4250-warning
#pragma warning(push)
#pragma warning(disable : 4250)
#endif
#ifdef _MSC_VER
#pragma warning(pop)
#endif
namespace Poco { namespace Poco {
namespace XML { namespace XML {
......
#include <fstream>
#include <sstream>
#include "MantidGeometry/Rendering/vtkGeometryCacheWriter.h" #include "MantidGeometry/Rendering/vtkGeometryCacheWriter.h"
#include "MantidGeometry/Objects/Object.h" #include "MantidGeometry/Objects/Object.h"
#include "MantidGeometry/Rendering/GeometryHandler.h" #include "MantidGeometry/Rendering/GeometryHandler.h"
#include "MantidKernel/Logger.h" #include "MantidKernel/Logger.h"
...@@ -11,23 +9,13 @@ ...@@ -11,23 +9,13 @@
#include <Poco/DOM/DOMWriter.h> #include <Poco/DOM/DOMWriter.h>
#include <Poco/DOM/Element.h> #include <Poco/DOM/Element.h>
#include <Poco/DOM/Text.h> #include <Poco/DOM/Text.h>
#include <Poco/File.h>
#ifdef _MSC_VER
// Disable a flood of warnings from Poco about inheriting from
// std::basic_istream
// See
// http://connect.microsoft.com/VisualStudio/feedback/details/733720/inheriting-from-std-fstream-produces-c4250-warning
#pragma warning(push)
#pragma warning(disable : 4250)
#endif
#include <Poco/FileStream.h> #include <Poco/FileStream.h>
#include <Poco/Path.h>
#include <Poco/XML/XMLWriter.h> #include <Poco/XML/XMLWriter.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#include <Poco/File.h> #include <fstream>
#include <Poco/Path.h> #include <sstream>
using Poco::XML::Document; using Poco::XML::Document;
using Poco::XML::Element; using Poco::XML::Element;
......
...@@ -5,25 +5,16 @@ ...@@ -5,25 +5,16 @@
// Includes // Includes
//-------------------------------------------- //--------------------------------------------
#include "MantidKernel/DllConfig.h" #include "MantidKernel/DllConfig.h"
#include <Poco/Logger.h>
#ifdef _MSC_VER
// Disable a flood of warnings about inheriting from std streams
// See
// http://connect.microsoft.com/VisualStudio/feedback/details/733720/inheriting-from-std-fstream-produces-c4250-warning
#pragma warning(push)
#pragma warning(disable : 4250)
#endif
#include <Poco/Logger.h>
#include <Poco/LogStream.h> #include <Poco/LogStream.h>
#include <Poco/Thread.h>
#include <Poco/UnbufferedStreamBuf.h> #include <Poco/UnbufferedStreamBuf.h>
#include <istream> #include <istream>
#include <Poco/Thread.h>
#include <mutex> #include <mutex>
namespace Mantid { namespace Mantid {
namespace Kernel { namespace Kernel {
/** /**
...@@ -166,8 +157,4 @@ public: ...@@ -166,8 +157,4 @@ public:
} }
} }
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif // MANTID_KERNEL_THREADSAFELOGSTREAM #endif // MANTID_KERNEL_THREADSAFELOGSTREAM
#include "MantidKernel/Logger.h" #include "MantidKernel/Logger.h"
#include "MantidKernel/ThreadSafeLogStream.h"
#ifdef _MSC_VER #include "MantidKernel/ThreadSafeLogStream.h"
// Disable a flood of warnings about inheriting from std streams
// See
// http://connect.microsoft.com/VisualStudio/feedback/details/733720/inheriting-from-std-fstream-produces-c4250-warning
#pragma warning(push)
#pragma warning(disable : 4250)
#endif
#include <Poco/NullStream.h> #include <Poco/NullStream.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
......
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Includes // Includes
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#include <fstream>
#include "MantidQtCustomInterfaces/Muon/IO_MuonGrouping.h" #include "MantidQtCustomInterfaces/Muon/IO_MuonGrouping.h"
#include "MantidAPI/MatrixWorkspace.h" #include "MantidAPI/MatrixWorkspace.h"
#include "MantidAPI/WorkspaceFactory.h" #include "MantidAPI/WorkspaceFactory.h"
#include "MantidQtAPI/UserSubWindow.h" #include "MantidQtAPI/UserSubWindow.h"
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
#include <Poco/DOM/Document.h> #include <Poco/DOM/Document.h>
#include <Poco/DOM/DOMParser.h> #include <Poco/DOM/DOMParser.h>
#include <Poco/DOM/DOMWriter.h> #include <Poco/DOM/DOMWriter.h>
#include <Poco/DOM/NodeList.h> #include <Poco/DOM/NodeList.h>
#include <Poco/DOM/Text.h> #include <Poco/DOM/Text.h>
#ifdef _MSC_VER
// Disable a flood of warnings from Poco about inheriting from
// std::basic_istream
// See
// http://connect.microsoft.com/VisualStudio/feedback/details/733720/inheriting-from-std-fstream-produces-c4250-warning
#pragma warning(push)
#pragma warning(disable : 4250)
#include <Poco/XML/XMLWriter.h> #include <Poco/XML/XMLWriter.h>
#pragma warning(pop)
#else #include <boost/shared_ptr.hpp>
#include <Poco/XML/XMLWriter.h> #include <boost/bind.hpp>
#endif #include <fstream>
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
using namespace Mantid; using namespace Mantid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment