diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-04 14:16:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-04 14:20:51 +0200 |
commit | fcb8df3bcf551fc3437e6c7c8ddb24dc5a09db02 (patch) | |
tree | b00511c71c3ea467e1f029cfdb80bb6ce72960b5 /i18npool/qa/cppunit | |
parent | 59b072e22b0610abc7ffdbc75873ef5cbba58de7 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
Diffstat (limited to 'i18npool/qa/cppunit')
-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 |
4 files changed, 4 insertions, 8 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() |