diff options
Diffstat (limited to 'sal/cppunittester')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index b637fb62cb2d..07c9a2b43e97 100644 --- a/sal/cppunittester/cppunittester.cxx +++ b/sal/cppunittester/cppunittester.cxx @@ -48,7 +48,7 @@ #include "cppunit/portability/Stream.h" #include "boost/noncopyable.hpp" -#include <boost/scoped_array.hpp> +#include <memory> #include <boost/algorithm/string.hpp> #include <algorithm> @@ -112,7 +112,7 @@ class EyecatcherListener public: void startTest( CppUnit::Test* test) SAL_OVERRIDE { - boost::scoped_array<char> tn(new char [ test->getName().length() + 2 ]); + std::unique_ptr<char[]> tn(new char [ test->getName().length() + 2 ]); strcpy(tn.get(), test->getName().c_str()); int len = strlen(tn.get()); for(int i = 0; i < len; i++) |