summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2015-12-27 01:48:46 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2015-12-26 18:11:11 +0000
commitca8560e006b014886bd6210d4e5b236cf7badcd0 (patch)
treeaf4b27bb527daa97a697985eb64dd3eafff52ab4
parent38e4f627095c81e92b3eab4fa17c4f20fbcadda6 (diff)
sw: (vba) change instances of maName to more descriptive names
Change-Id: Icb20fa909681ccb6acfc72f4243c09e9b9b4a3c2 Reviewed-on: https://gerrit.libreoffice.org/20957 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
-rw-r--r--sw/source/ui/vba/vbabookmark.cxx8
-rw-r--r--sw/source/ui/vba/vbabookmark.hxx2
-rw-r--r--sw/source/ui/vba/vbavariable.cxx12
-rw-r--r--sw/source/ui/vba/vbavariable.hxx2
4 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/ui/vba/vbabookmark.cxx b/sw/source/ui/vba/vbabookmark.cxx
index 1cf332c123a2..17891937a387 100644
--- a/sw/source/ui/vba/vbabookmark.cxx
+++ b/sw/source/ui/vba/vbabookmark.cxx
@@ -32,11 +32,11 @@ using namespace ::ooo::vba;
using namespace ::com::sun::star;
SwVbaBookmark::SwVbaBookmark( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext,
- const css::uno::Reference< frame::XModel >& rModel, const OUString& rName ) throw ( css::uno::RuntimeException ) :
- SwVbaBookmark_BASE( rParent, rContext ), mxModel( rModel ), maName( rName ), mbValid( true )
+ const css::uno::Reference< frame::XModel >& rModel, const OUString& rBookmarkName ) throw ( css::uno::RuntimeException ) :
+ SwVbaBookmark_BASE( rParent, rContext ), mxModel( rModel ), maBookmarkName( rBookmarkName ), mbValid( true )
{
uno::Reference< text::XBookmarksSupplier > xBookmarksSupplier( mxModel, uno::UNO_QUERY_THROW );
- mxBookmark.set( xBookmarksSupplier->getBookmarks()->getByName( maName ), uno::UNO_QUERY_THROW );
+ mxBookmark.set( xBookmarksSupplier->getBookmarks()->getByName( maBookmarkName ), uno::UNO_QUERY_THROW );
}
SwVbaBookmark::~SwVbaBookmark()
@@ -66,7 +66,7 @@ void SAL_CALL SwVbaBookmark::Select() throw ( uno::RuntimeException, std::except
OUString SAL_CALL SwVbaBookmark::getName() throw ( uno::RuntimeException, std::exception )
{
- return maName;
+ return maBookmarkName;
}
void SAL_CALL SwVbaBookmark::setName( const OUString& _name ) throw ( uno::RuntimeException, std::exception )
diff --git a/sw/source/ui/vba/vbabookmark.hxx b/sw/source/ui/vba/vbabookmark.hxx
index 2df51ac65a11..2b28f7bec190 100644
--- a/sw/source/ui/vba/vbabookmark.hxx
+++ b/sw/source/ui/vba/vbabookmark.hxx
@@ -31,7 +31,7 @@ class SwVbaBookmark : public SwVbaBookmark_BASE
private:
css::uno::Reference< css::frame::XModel > mxModel;
css::uno::Reference< css::text::XTextContent > mxBookmark;
- OUString maName;
+ OUString maBookmarkName;
bool mbValid;
private:
diff --git a/sw/source/ui/vba/vbavariable.cxx b/sw/source/ui/vba/vbavariable.cxx
index dbecbba76507..7aab993d4ebb 100644
--- a/sw/source/ui/vba/vbavariable.cxx
+++ b/sw/source/ui/vba/vbavariable.cxx
@@ -26,8 +26,8 @@ using namespace ::ooo::vba;
using namespace ::com::sun::star;
SwVbaVariable::SwVbaVariable( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext,
- const uno::Reference< beans::XPropertyAccess >& rUserDefined, const OUString& rName ) throw ( uno::RuntimeException ) :
- SwVbaVariable_BASE( rParent, rContext ), mxUserDefined( rUserDefined ), maName( rName )
+ const uno::Reference< beans::XPropertyAccess >& rUserDefined, const OUString& rVariableName ) throw ( uno::RuntimeException ) :
+ SwVbaVariable_BASE( rParent, rContext ), mxUserDefined( rUserDefined ), maVariableName( rVariableName )
{
}
@@ -38,7 +38,7 @@ SwVbaVariable::~SwVbaVariable()
OUString SAL_CALL
SwVbaVariable::getName() throw ( css::uno::RuntimeException, std::exception )
{
- return maName;
+ return maVariableName;
}
void SAL_CALL
@@ -51,7 +51,7 @@ uno::Any SAL_CALL
SwVbaVariable::getValue() throw ( css::uno::RuntimeException, std::exception )
{
uno::Reference< beans::XPropertySet > xProp( mxUserDefined, uno::UNO_QUERY_THROW );
- return xProp->getPropertyValue( maName );
+ return xProp->getPropertyValue( maVariableName );
}
void SAL_CALL
@@ -59,7 +59,7 @@ SwVbaVariable::setValue( const uno::Any& rValue ) throw ( css::uno::RuntimeExcep
{
// FIXME: fail to set the value if the new type of value is different from the original one.
uno::Reference< beans::XPropertySet > xProp( mxUserDefined, uno::UNO_QUERY_THROW );
- xProp->setPropertyValue( maName, rValue );
+ xProp->setPropertyValue( maVariableName, rValue );
}
sal_Int32 SAL_CALL
@@ -68,7 +68,7 @@ SwVbaVariable::getIndex() throw ( css::uno::RuntimeException, std::exception )
const uno::Sequence< beans::PropertyValue > props = mxUserDefined->getPropertyValues();
for (sal_Int32 i = 0; i < props.getLength(); ++i)
{
- if( maName.equals( props[i].Name ) )
+ if( maVariableName.equals( props[i].Name ) )
return i+1;
}
diff --git a/sw/source/ui/vba/vbavariable.hxx b/sw/source/ui/vba/vbavariable.hxx
index 7c4fadeaa153..19b4db10653e 100644
--- a/sw/source/ui/vba/vbavariable.hxx
+++ b/sw/source/ui/vba/vbavariable.hxx
@@ -29,7 +29,7 @@ class SwVbaVariable : public SwVbaVariable_BASE
{
private:
css::uno::Reference< css::beans::XPropertyAccess > mxUserDefined;
- OUString maName;
+ OUString maVariableName;
public:
SwVbaVariable( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext,