From 5cba714b4d03ed54debf71534ad8c8edc383a01e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 24 Jun 2015 16:33:50 +0200 Subject: Revert "Generalize OUStringLiteral1" This reverts commit 4d4f3512db0cf0bf47c2ba1b39c3813842903ef7, at least "gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux)" fails with "include/rtl/stringutils.hxx:175:49: internal compiler error: Segmentation fault." --- sal/qa/rtl/strings/test_oustring_stringliterals.cxx | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'sal') diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx index 825e7d84ad25..9b85b314c85f 100644 --- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx +++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx @@ -192,20 +192,6 @@ void test::oustring::StringLiterals::checkOUStringLiteral() void test::oustring::StringLiterals::checkOUStringLiteral1() { - auto l1 = rtlunittest::OUStringLiteral1<'A'>(); - CPPUNIT_ASSERT_EQUAL('A', l1.c); - - char const c2 = 'A'; - auto l2 = rtlunittest::OUStringLiteral1(); - CPPUNIT_ASSERT_EQUAL('A', l2.c); - - // char c3 = 'A'; auto l3 = rtlunittest::OUStringLiteral1(); - - auto l4 = rtlunittest::OUStringLiteral1(); - CPPUNIT_ASSERT_EQUAL('A', l4.c); - - // auto l5 = rtlunittest::OUStringLiteral1(); - rtl::OUString s1; s1 = rtlunittest::OUStringLiteral1<'A'>(); CPPUNIT_ASSERT_EQUAL(sal_Int32(1), s1.getLength()); -- cgit