loplugin:moveparam in editeng
Change-Id: I08aed09b0acd283d700bdf75f650e93dba7c7b85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123341 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
|||||||
WrongList();
|
WrongList();
|
||||||
|
|
||||||
const std::vector<editeng::MisspellRange>& GetRanges() const { return maRanges;}
|
const std::vector<editeng::MisspellRange>& GetRanges() const { return maRanges;}
|
||||||
void SetRanges( const std::vector<editeng::MisspellRange>& rRanges );
|
void SetRanges( std::vector<editeng::MisspellRange>&& rRanges );
|
||||||
|
|
||||||
bool IsValid() const;
|
bool IsValid() const;
|
||||||
void SetValid();
|
void SetValid();
|
||||||
|
@@ -56,9 +56,9 @@ namespace accessibility
|
|||||||
// owner is responsible for possible child death
|
// owner is responsible for possible child death
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccessibleParaManager::SetAdditionalChildStates( const VectorOfStates& rChildStates )
|
void AccessibleParaManager::SetAdditionalChildStates( VectorOfStates&& rChildStates )
|
||||||
{
|
{
|
||||||
maChildStates = rChildStates;
|
maChildStates = std::move(rChildStates);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccessibleParaManager::SetNum( sal_Int32 nNumParas )
|
void AccessibleParaManager::SetNum( sal_Int32 nNumParas )
|
||||||
|
@@ -150,9 +150,9 @@ void EditSpellWrapper::CheckSpellTo()
|
|||||||
|
|
||||||
WrongList::WrongList() : mnInvalidStart(0), mnInvalidEnd(Valid) {}
|
WrongList::WrongList() : mnInvalidStart(0), mnInvalidEnd(Valid) {}
|
||||||
|
|
||||||
void WrongList::SetRanges( const std::vector<editeng::MisspellRange>& rRanges )
|
void WrongList::SetRanges( std::vector<editeng::MisspellRange>&&rRanges )
|
||||||
{
|
{
|
||||||
maRanges = rRanges;
|
maRanges = std::move(rRanges);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WrongList::IsValid() const
|
bool WrongList::IsValid() const
|
||||||
|
@@ -1376,7 +1376,7 @@ void ImpEditEngine::SetAllMisspellRanges( const std::vector<editeng::MisspellRan
|
|||||||
|
|
||||||
pNode->CreateWrongList();
|
pNode->CreateWrongList();
|
||||||
WrongList* pWrongList = pNode->GetWrongList();
|
WrongList* pWrongList = pNode->GetWrongList();
|
||||||
pWrongList->SetRanges(rParaRanges.maRanges);
|
pWrongList->SetRanges(std::vector(rParaRanges.maRanges));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -105,7 +105,7 @@ namespace accessibility
|
|||||||
(text paragraph). The state values are defined in
|
(text paragraph). The state values are defined in
|
||||||
css::accessibility::AccessibleStateType.
|
css::accessibility::AccessibleStateType.
|
||||||
*/
|
*/
|
||||||
void SetAdditionalChildStates( const VectorOfStates& rChildStates );
|
void SetAdditionalChildStates( VectorOfStates&& rChildStates );
|
||||||
|
|
||||||
/** Set the number of paragraphs
|
/** Set the number of paragraphs
|
||||||
|
|
||||||
|
@@ -258,7 +258,7 @@ public:
|
|||||||
This function has to be called before querying for
|
This function has to be called before querying for
|
||||||
any children (e.g. with GetChild()).
|
any children (e.g. with GetChild()).
|
||||||
*/
|
*/
|
||||||
void SetAdditionalChildStates(const VectorOfStates& rChildStates);
|
void SetAdditionalChildStates(VectorOfStates&& rChildStates);
|
||||||
|
|
||||||
/** Update the visible children
|
/** Update the visible children
|
||||||
|
|
||||||
|
@@ -271,7 +271,7 @@ void ScAccessiblePreviewCell::CreateTextHelper()
|
|||||||
// paragraphs in preview are transient
|
// paragraphs in preview are transient
|
||||||
::accessibility::AccessibleTextHelper::VectorOfStates aChildStates;
|
::accessibility::AccessibleTextHelper::VectorOfStates aChildStates;
|
||||||
aChildStates.push_back( AccessibleStateType::TRANSIENT );
|
aChildStates.push_back( AccessibleStateType::TRANSIENT );
|
||||||
mpTextHelper->SetAdditionalChildStates( aChildStates );
|
mpTextHelper->SetAdditionalChildStates( std::move(aChildStates) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -122,7 +122,7 @@ namespace accessibility
|
|||||||
return mnStartIndex;
|
return mnStartIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetAdditionalChildStates( const VectorOfStates& rChildStates );
|
void SetAdditionalChildStates( VectorOfStates&& rChildStates );
|
||||||
|
|
||||||
void Dispose();
|
void Dispose();
|
||||||
|
|
||||||
@@ -350,9 +350,9 @@ namespace accessibility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccessibleTextHelper_Impl::SetAdditionalChildStates( const VectorOfStates& rChildStates )
|
void AccessibleTextHelper_Impl::SetAdditionalChildStates( VectorOfStates&& rChildStates )
|
||||||
{
|
{
|
||||||
maParaManager.SetAdditionalChildStates( rChildStates );
|
maParaManager.SetAdditionalChildStates( std::move(rChildStates) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccessibleTextHelper_Impl::SetChildFocus( sal_Int32 nChild, bool bHaveFocus )
|
void AccessibleTextHelper_Impl::SetChildFocus( sal_Int32 nChild, bool bHaveFocus )
|
||||||
@@ -1644,9 +1644,9 @@ namespace accessibility
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccessibleTextHelper::SetAdditionalChildStates( const VectorOfStates& rChildStates )
|
void AccessibleTextHelper::SetAdditionalChildStates( VectorOfStates&& rChildStates )
|
||||||
{
|
{
|
||||||
mpImpl->SetAdditionalChildStates( rChildStates );
|
mpImpl->SetAdditionalChildStates( std::move(rChildStates) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void AccessibleTextHelper::UpdateChildren()
|
void AccessibleTextHelper::UpdateChildren()
|
||||||
|
Reference in New Issue
Block a user