diff options
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/qa/cppunit/test_breakiterator.cxx | 3 | ||||
-rw-r--r-- | i18npool/qa/cppunit/test_characterclassification.cxx | 3 | ||||
-rw-r--r-- | i18npool/qa/cppunit/test_ordinalsuffix.cxx | 3 | ||||
-rw-r--r-- | i18npool/qa/cppunit/test_textsearch.cxx | 3 | ||||
-rw-r--r-- | i18npool/source/localedata/saxparser.cxx | 2 |
5 files changed, 5 insertions, 9 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx index a1f63d55395a..29fc48909d12 100644 --- a/i18npool/qa/cppunit/test_breakiterator.cxx +++ b/i18npool/qa/cppunit/test_breakiterator.cxx @@ -980,8 +980,7 @@ void TestBreakIterator::testChinese() void TestBreakIterator::setUp() { BootstrapFixtureBase::setUp(); - m_xBreak = uno::Reference< i18n::XBreakIterator >(m_xSFactory->createInstance( - "com.sun.star.i18n.BreakIterator"), uno::UNO_QUERY_THROW); + m_xBreak.set(m_xSFactory->createInstance("com.sun.star.i18n.BreakIterator"), uno::UNO_QUERY_THROW); } void TestBreakIterator::tearDown() diff --git a/i18npool/qa/cppunit/test_characterclassification.cxx b/i18npool/qa/cppunit/test_characterclassification.cxx index 9c2b45282fa6..16cf087324e7 100644 --- a/i18npool/qa/cppunit/test_characterclassification.cxx +++ b/i18npool/qa/cppunit/test_characterclassification.cxx @@ -96,8 +96,7 @@ void TestCharacterClassification::testStringType() void TestCharacterClassification::setUp() { BootstrapFixtureBase::setUp(); - m_xCC = uno::Reference< i18n::XCharacterClassification >(m_xSFactory->createInstance( - "com.sun.star.i18n.CharacterClassification"), uno::UNO_QUERY_THROW); + m_xCC.set(m_xSFactory->createInstance("com.sun.star.i18n.CharacterClassification"), uno::UNO_QUERY_THROW); } void TestCharacterClassification::tearDown() diff --git a/i18npool/qa/cppunit/test_ordinalsuffix.cxx b/i18npool/qa/cppunit/test_ordinalsuffix.cxx index f09f8ec3fc9a..fb06a41fa4b2 100644 --- a/i18npool/qa/cppunit/test_ordinalsuffix.cxx +++ b/i18npool/qa/cppunit/test_ordinalsuffix.cxx @@ -34,8 +34,7 @@ public: void TestOrdinalSuffix::setUp() { BootstrapFixtureBase::setUp(); - m_xOrdinal = uno::Reference< i18n::XOrdinalSuffix >(m_xSFactory->createInstance( - "com.sun.star.i18n.OrdinalSuffix"), uno::UNO_QUERY_THROW); + m_xOrdinal.set(m_xSFactory->createInstance("com.sun.star.i18n.OrdinalSuffix"), uno::UNO_QUERY_THROW); } void TestOrdinalSuffix::tearDown() diff --git a/i18npool/qa/cppunit/test_textsearch.cxx b/i18npool/qa/cppunit/test_textsearch.cxx index 405a8535de23..a5713d00da70 100644 --- a/i18npool/qa/cppunit/test_textsearch.cxx +++ b/i18npool/qa/cppunit/test_textsearch.cxx @@ -127,8 +127,7 @@ void TestTextSearch::testSearches() void TestTextSearch::setUp() { BootstrapFixtureBase::setUp(); - m_xSearch = uno::Reference< util::XTextSearch >(m_xSFactory->createInstance( - "com.sun.star.util.TextSearch"), uno::UNO_QUERY_THROW); + m_xSearch.set(m_xSFactory->createInstance("com.sun.star.util.TextSearch"), uno::UNO_QUERY_THROW); } void TestTextSearch::tearDown() diff --git a/i18npool/source/localedata/saxparser.cxx b/i18npool/source/localedata/saxparser.cxx index beb184ed6bf7..695a36b63c07 100644 --- a/i18npool/source/localedata/saxparser.cxx +++ b/i18npool/source/localedata/saxparser.cxx @@ -143,7 +143,7 @@ Reference< XInputStream > createStreamFromFile( Sequence<sal_Int8> seqIn(nLength); if (fread( seqIn.getArray(), nLength , 1 , f ) == 1) - r = Reference< XInputStream > ( new OInputStream( seqIn ) ); + r.set( new OInputStream( seqIn ) ); else fprintf(stderr, "failure reading %s\n", pcFile); fclose( f ); |