diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-18 10:50:35 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2011-10-18 18:26:48 +0300 |
commit | adcf15c865692ed9071a971d5c0adc2ca49e4e0c (patch) | |
tree | 35e48594b22fe6474fa15b6d12cc94ef9822c71a /sc/source/ui/vba | |
parent | bbe2a8674623c6a30f483040f114c754e67476ca (diff) |
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
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r-- | sc/source/ui/vba/vbaformatconditions.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sc/source/ui/vba/vbaformatconditions.hxx b/sc/source/ui/vba/vbaformatconditions.hxx index 01570c1e8da4..e191e277c2cf 100644 --- a/sc/source/ui/vba/vbaformatconditions.hxx +++ b/sc/source/ui/vba/vbaformatconditions.hxx @@ -36,6 +36,19 @@ #include <vbahelper/vbacollectionimpl.hxx> 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 { css::table::CellAddress maCellAddress; @@ -62,6 +75,10 @@ public: virtual css::uno::Sequence<rtl::OUString> getServiceNames(); }; +#ifdef _MSC_VER +#pragma warning(pop) +#endif + #endif //SC_VBA_AXES_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |