diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-09 13:14:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-09 13:14:46 +0200 |
commit | 37d764bce9eb5d5f126464ca566594e108719ea7 (patch) | |
tree | 95081c1734740e030fdafe28380203303773dbe8 /include/com | |
parent | 22e800c4d2d500020dd0390ee5c816f9dd7fd88b (diff) |
Enforce "There is no css::uno::Sequence<bool>"
While some uses of Sequence<bool> might silently work, it would be too dangerous
to accidentally pass them around to other places that correctly expect
Sequence<sal_Bool> instead, so best to rule them out completely.
Change-Id: Ia60c839218c079cc42b4310d1315d95b6f2c68fd
Diffstat (limited to 'include/com')
-rw-r--r-- | include/com/sun/star/uno/Sequence.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/com/sun/star/uno/Sequence.h b/include/com/sun/star/uno/Sequence.h index b7e4195601c0..92bcf8a8dd34 100644 --- a/include/com/sun/star/uno/Sequence.h +++ b/include/com/sun/star/uno/Sequence.h @@ -248,6 +248,12 @@ public: { return _pSequence; } }; +// Find uses of illegal Sequence<bool> (instead of Sequence<sal_Bool>) during +// compilation: +template<> class Sequence<bool> { + Sequence(Sequence<bool> const &) SAL_DELETED_FUNCTION; +}; + /** Creates a UNO byte sequence from a SAL byte sequence. @param rByteSequence a byte sequence |