diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-25 12:03:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-02 08:02:54 +0000 |
commit | 4978328534c0f759eea7d0c196046f1d53b06925 (patch) | |
tree | cf9dcd62c4f09dcd08115bbda2a8950678a38562 /starmath | |
parent | 1461ebbbb5d47d90e31f0945a4878a68fbee5213 (diff) |
convert method names in tools::SvRef to be more like our other..
reference classes, uno::Reference and rtl::Reference.
Specifically rename Is()->is() and Clear()->clear().
Change-Id: Icb7e05e2d09cb9977121508b837ba0961dabb4ae
Reviewed-on: https://gerrit.libreoffice.org/33576
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/qa/cppunit/test_cursor.cxx | 2 | ||||
-rw-r--r-- | starmath/qa/cppunit/test_node.cxx | 2 | ||||
-rw-r--r-- | starmath/qa/cppunit/test_nodetotextvisitors.cxx | 2 | ||||
-rw-r--r-- | starmath/qa/cppunit/test_parse.cxx | 2 | ||||
-rw-r--r-- | starmath/qa/cppunit/test_starmath.cxx | 2 | ||||
-rw-r--r-- | starmath/qa/extras/mmlexport-test.cxx | 2 | ||||
-rw-r--r-- | starmath/qa/extras/mmlimport-test.cxx | 2 | ||||
-rw-r--r-- | starmath/source/eqnolefilehdr.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathtype.cxx | 8 |
9 files changed, 12 insertions, 12 deletions
diff --git a/starmath/qa/cppunit/test_cursor.cxx b/starmath/qa/cppunit/test_cursor.cxx index 6cbc4fe2ef41..dd6b86f39439 100644 --- a/starmath/qa/cppunit/test_cursor.cxx +++ b/starmath/qa/cppunit/test_cursor.cxx @@ -61,7 +61,7 @@ void Test::setUp() void Test::tearDown() { - xDocShRef.Clear(); + xDocShRef.clear(); BootstrapFixture::tearDown(); } diff --git a/starmath/qa/cppunit/test_node.cxx b/starmath/qa/cppunit/test_node.cxx index 68396b78eb95..3a450b5329f5 100644 --- a/starmath/qa/cppunit/test_node.cxx +++ b/starmath/qa/cppunit/test_node.cxx @@ -55,7 +55,7 @@ void NodeTest::setUp() void NodeTest::tearDown() { - if (mxDocShell.Is()) + if (mxDocShell.is()) mxDocShell->DoClose(); BootstrapFixture::tearDown(); } diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx index 662cc2c165dc..bc131de94027 100644 --- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx +++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx @@ -94,7 +94,7 @@ void Test::setUp() void Test::tearDown() { - xDocShRef.Clear(); + xDocShRef.clear(); BootstrapFixture::tearDown(); } diff --git a/starmath/qa/cppunit/test_parse.cxx b/starmath/qa/cppunit/test_parse.cxx index 2aff581cf375..80da700be4cc 100644 --- a/starmath/qa/cppunit/test_parse.cxx +++ b/starmath/qa/cppunit/test_parse.cxx @@ -52,7 +52,7 @@ void ParseTest::setUp() void ParseTest::tearDown() { - if (mxDocShell.Is()) + if (mxDocShell.is()) mxDocShell->DoClose(); BootstrapFixture::tearDown(); } diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 05cddc500d8e..7a5688a1463d 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -102,7 +102,7 @@ void Test::tearDown() m_pSmCmdBoxWindow.disposeAndClear(); m_pDispatcher.reset(); m_xDocShRef->DoClose(); - m_xDocShRef.Clear(); + m_xDocShRef.clear(); BootstrapFixture::tearDown(); } diff --git a/starmath/qa/extras/mmlexport-test.cxx b/starmath/qa/extras/mmlexport-test.cxx index b3cb3aa38e3f..8254eec92ef9 100644 --- a/starmath/qa/extras/mmlexport-test.cxx +++ b/starmath/qa/extras/mmlexport-test.cxx @@ -65,7 +65,7 @@ void MathMLExportTest::setUp() void MathMLExportTest::tearDown() { - if (mxDocShell.Is()) + if (mxDocShell.is()) mxDocShell->DoClose(); BootstrapFixture::tearDown(); } diff --git a/starmath/qa/extras/mmlimport-test.cxx b/starmath/qa/extras/mmlimport-test.cxx index aa9e0f7fe33b..430209a1d383 100644 --- a/starmath/qa/extras/mmlimport-test.cxx +++ b/starmath/qa/extras/mmlimport-test.cxx @@ -88,7 +88,7 @@ void Test::setUp() void Test::tearDown() { - if (mxDocShell.Is()) mxDocShell->DoClose(); + if (mxDocShell.is()) mxDocShell->DoClose(); BootstrapFixture::tearDown(); } diff --git a/starmath/source/eqnolefilehdr.cxx b/starmath/source/eqnolefilehdr.cxx index 5ffc66e68a2f..aa6fdaca6d02 100644 --- a/starmath/source/eqnolefilehdr.cxx +++ b/starmath/source/eqnolefilehdr.cxx @@ -32,7 +32,7 @@ bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion ) tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream( "Equation Native", StreamMode::STD_READ); - if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError())) + if ( (!xSrc.is()) || (SVSTREAM_OK != xSrc->GetError())) return bSuccess; SotStorageStream *pS = xSrc.get(); pS->SetEndian( SvStreamEndian::LITTLE ); diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 1e107158b9df..791dc9bd1583 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -558,7 +558,7 @@ bool MathType::Parse(SotStorage *pStor) tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream( "Equation Native", StreamMode::STD_READ); - if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError())) + if ( (!xSrc.is()) || (SVSTREAM_OK != xSrc->GetError())) return false; pS = xSrc.get(); pS->SetEndian( SvStreamEndian::LITTLE ); @@ -1914,11 +1914,11 @@ bool MathType::ConvertFromStarMath( SfxMedium& rMedium ) }; tools::SvRef<SotStorageStream> xStor2( pStor->OpenSotStream("\1Ole")); xStor2->WriteBytes(aOle, sizeof(aOle)); - xStor.Clear(); - xStor2.Clear(); + xStor.clear(); + xStor2.clear(); tools::SvRef<SotStorageStream> xSrc = pStor->OpenSotStream("Equation Native"); - if ( (!xSrc.Is()) || (SVSTREAM_OK != xSrc->GetError())) + if ( (!xSrc.is()) || (SVSTREAM_OK != xSrc->GetError())) return false; pS = xSrc.get(); |