diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-05 20:54:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-05 22:21:49 +0000 |
commit | 4d6a509efe6bd56613b5554556d3a4f7f4cfd0d5 (patch) | |
tree | 22fc10679131c72993615d0fa634460d14a15ec8 /comphelper | |
parent | 076b098ddf80fc78773d3ed97b7fd50dbcb4ebb6 (diff) |
convert all remaining BOOST_STATIC_ASSERT to static_assert
and we can include a few less headers
Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/pch/precompiled_comphelper.hxx | 1 | ||||
-rw-r--r-- | comphelper/source/xml/xmltools.cxx | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/comphelper/inc/pch/precompiled_comphelper.hxx b/comphelper/inc/pch/precompiled_comphelper.hxx index 5aacf0b62959..7b83f16bf8fb 100644 --- a/comphelper/inc/pch/precompiled_comphelper.hxx +++ b/comphelper/inc/pch/precompiled_comphelper.hxx @@ -22,7 +22,6 @@ #include <boost/scoped_array.hpp> #include <boost/scoped_ptr.hpp> #include <boost/shared_ptr.hpp> -#include <boost/static_assert.hpp> #include <cassert> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> diff --git a/comphelper/source/xml/xmltools.cxx b/comphelper/source/xml/xmltools.cxx index 83387d56c159..5473873625a8 100644 --- a/comphelper/source/xml/xmltools.cxx +++ b/comphelper/source/xml/xmltools.cxx @@ -9,7 +9,6 @@ #include <comphelper/xmltools.hxx> #include <rtl/random.h> -#include <boost/static_assert.hpp> #include <vector> using namespace com::sun::star; @@ -60,7 +59,7 @@ namespace void encodeChaff(std::vector<sal_uInt8> &rChaff) { - BOOST_STATIC_ASSERT(sizeof(aChaffEncoder) == 256); + static_assert(sizeof(aChaffEncoder) == 256, "this has to cover all chars"); for (std::vector<sal_uInt8>::iterator aI = rChaff.begin(), aEnd = rChaff.end(); aI != aEnd; ++aI) |