summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-10 12:17:56 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-11 05:28:14 +0000
commit60362e62ad5c9982ac7a0afec74f714cf0d9efa7 (patch)
tree3b7889771f493891dea126b8a7a53226dfa66962
parentloplugin:unreffun (diff)
downloadcore-60362e62ad5c9982ac7a0afec74f714cf0d9efa7.tar.gz
core-60362e62ad5c9982ac7a0afec74f714cf0d9efa7.zip
rename variable to reflect that it is not a reference
Change-Id: Ifcc15e2a500bdc77dd21e96eea3873c3e78e7e55 Reviewed-on: https://gerrit.libreoffice.org/27086 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--cui/source/options/personalization.cxx26
-rw-r--r--cui/source/options/personalization.hxx2
2 files changed, 14 insertions, 14 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index ffd2adc10cf1..53ce14fd5077 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -130,8 +130,8 @@ OUString SelectPersonaDialog::GetSelectedPersona() const
IMPL_LINK_TYPED( SelectPersonaDialog, SearchPersonas, Button*, pButton, void )
{
OUString searchTerm;
- if( m_rSearchThread.is() )
- m_rSearchThread->StopExecution();
+ if( m_pSearchThread.is() )
+ m_pSearchThread->StopExecution();
if( pButton == m_pSearchButton )
searchTerm = m_pEdit->GetText();
@@ -157,12 +157,12 @@ IMPL_LINK_TYPED( SelectPersonaDialog, SearchPersonas, Button*, pButton, void )
if ( searchTerm.startsWith( "https://addons.mozilla.org/" ) )
{
searchTerm = "https://addons.mozilla.org/en-US/" + searchTerm.copy( searchTerm.indexOf( "firefox" ) );
- m_rSearchThread = new SearchAndParseThread( this, searchTerm, true );
+ m_pSearchThread = new SearchAndParseThread( this, searchTerm, true );
}
else
- m_rSearchThread = new SearchAndParseThread( this, rSearchURL, false );
+ m_pSearchThread = new SearchAndParseThread( this, rSearchURL, false );
- m_rSearchThread->launch();
+ m_pSearchThread->launch();
}
IMPL_LINK_NOARG_TYPED( SelectPersonaDialog, ActionOK, Button*, void )
@@ -171,30 +171,30 @@ IMPL_LINK_NOARG_TYPED( SelectPersonaDialog, ActionOK, Button*, void )
if( !aSelectedPersona.isEmpty() )
{
- m_rSearchThread = new SearchAndParseThread( this, aSelectedPersona, false );
- m_rSearchThread->launch();
+ m_pSearchThread = new SearchAndParseThread( this, aSelectedPersona, false );
+ m_pSearchThread->launch();
}
else
{
- if( m_rSearchThread.is() )
- m_rSearchThread->StopExecution();
+ if( m_pSearchThread.is() )
+ m_pSearchThread->StopExecution();
EndDialog( RET_OK );
}
}
IMPL_LINK_NOARG_TYPED( SelectPersonaDialog, ActionCancel, Button*, void )
{
- if( m_rSearchThread.is() )
- m_rSearchThread->StopExecution();
+ if( m_pSearchThread.is() )
+ m_pSearchThread->StopExecution();
EndDialog();
}
IMPL_LINK_TYPED( SelectPersonaDialog, SelectPersona, Button*, pButton, void )
{
- if( m_rSearchThread.is() )
- m_rSearchThread->StopExecution();
+ if( m_pSearchThread.is() )
+ m_pSearchThread->StopExecution();
for( sal_Int32 index = 0; index < 9; index++ )
{
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index 602de5276894..205b981a1fce 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -97,7 +97,7 @@ public:
explicit SelectPersonaDialog( vcl::Window *pParent );
virtual ~SelectPersonaDialog();
virtual void dispose() override;
- ::rtl::Reference< SearchAndParseThread > m_rSearchThread;
+ ::rtl::Reference< SearchAndParseThread > m_pSearchThread;
OUString GetSelectedPersona() const;
void SetProgress( const OUString& );