Kaydet (Commit) adcf15c8 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: 'ScVbaFormatConditions' : default constructor could not be generated

The ScVbaFormatConditions class is used only as a target for casting,
it seems, and no objects of this type are created as such, I think.
So avoid MSVC warnings:

warning C4510: 'ScVbaFormatConditions' : default constructor could not
be generated

warning C4610: class 'ScVbaFormatConditions' can never be instantiated
- user defined constructor required
üst bbe2a867
...@@ -36,6 +36,19 @@ ...@@ -36,6 +36,19 @@
#include <vbahelper/vbacollectionimpl.hxx> #include <vbahelper/vbacollectionimpl.hxx>
typedef CollTestImplHelper< ov::excel::XFormatConditions > ScVbaFormatConditions_BASE; typedef CollTestImplHelper< ov::excel::XFormatConditions > ScVbaFormatConditions_BASE;
// This class is used only as a target for casting, it seems,
// and no objects of this type are created as such, I think.
// So avoid MSVC warnings:
// warning C4510: 'ScVbaFormatConditions' : default constructor could not be generated
// warning C4610: class 'ScVbaFormatConditions' can never be instantiated - user defined constructor required
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4510)
#pragma warning(disable: 4610)
#endif
class ScVbaFormatConditions: public ScVbaFormatConditions_BASE class ScVbaFormatConditions: public ScVbaFormatConditions_BASE
{ {
css::table::CellAddress maCellAddress; css::table::CellAddress maCellAddress;
...@@ -62,6 +75,10 @@ public: ...@@ -62,6 +75,10 @@ public:
virtual css::uno::Sequence<rtl::OUString> getServiceNames(); virtual css::uno::Sequence<rtl::OUString> getServiceNames();
}; };
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif //SC_VBA_AXES_HXX #endif //SC_VBA_AXES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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