Commit 3311bedd authored by Patrick Spendrin's avatar Patrick Spendrin Committed by Pino Toscano
Browse files

MSVC: disable for the 'ustring' class the warning C4251 (which does not apply)

parent 9efa1839
...@@ -71,6 +71,11 @@ enum case_sensitivity_enum { case_sensitive, case_insensitive }; ...@@ -71,6 +71,11 @@ enum case_sensitivity_enum { case_sensitive, case_insensitive };
typedef std::vector<char> byte_array; typedef std::vector<char> byte_array;
// to disable warning only for this occurrence
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4251) /* class 'A' needs to have dll interface for to be used by clients of class 'B'. */
#endif
class POPPLER_CPP_EXPORT ustring : public std::basic_string<unsigned short> class POPPLER_CPP_EXPORT ustring : public std::basic_string<unsigned short>
{ {
public: public:
...@@ -90,6 +95,9 @@ private: ...@@ -90,6 +95,9 @@ private:
operator std::string() const; operator std::string() const;
ustring& operator=(const std::string &); ustring& operator=(const std::string &);
}; };
#ifdef _MSC_VER
#pragma warning(pop)
#endif
POPPLER_CPP_EXPORT unsigned int /*time_t*/ convert_date(const std::string &date); POPPLER_CPP_EXPORT unsigned int /*time_t*/ convert_date(const std::string &date);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment