Kaydet (Commit) e6419750 authored tarafından Jochen Nitschke's avatar Jochen Nitschke Kaydeden (comit) Noel Grandin

clang-tidy modernize-use-equals-default in sd

Change-Id: Ib3d3bb1a0484cb8bb6411444254644252e3614cf
Reviewed-on: https://gerrit.libreoffice.org/45293Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c4c4c7e3
...@@ -288,13 +288,6 @@ public: ...@@ -288,13 +288,6 @@ public:
it is as a marker in comparisons. it is as a marker in comparisons.
*/ */
IteratorPosition(); IteratorPosition();
/** Create a new object with all data members set from the given
position.
@param aPosition
The position object from which to take the values that are
assigned to the data members of this object.
*/
IteratorPosition (const IteratorPosition& aPosition);
/** Compare two positions for equality. /** Compare two positions for equality.
@return @return
......
...@@ -126,7 +126,6 @@ namespace sd ...@@ -126,7 +126,6 @@ namespace sd
bool mbShowPauseLogo; bool mbShowPauseLogo;
PresentationSettings(); PresentationSettings();
PresentationSettings( const PresentationSettings& r );
}; };
} }
......
...@@ -130,23 +130,6 @@ PresentationSettings::PresentationSettings() ...@@ -130,23 +130,6 @@ PresentationSettings::PresentationSettings()
{ {
} }
PresentationSettings::PresentationSettings( const PresentationSettings& r )
: maPresPage( r.maPresPage ),
mbAll( r.mbAll ),
mbEndless( r.mbEndless ),
mbCustomShow( r.mbCustomShow ),
mbManual( r.mbManual ),
mbMouseVisible( r.mbMouseVisible ),
mbMouseAsPen( r.mbMouseAsPen ),
mbLockedPages( r.mbLockedPages ),
mbAlwaysOnTop( r.mbAlwaysOnTop ),
mbFullScreen( r.mbFullScreen ),
mbAnimationAllowed( r.mbAnimationAllowed ),
mnPauseTimeout( r.mnPauseTimeout ),
mbShowPauseLogo( r.mbShowPauseLogo )
{
}
SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh) SdDrawDocument::SdDrawDocument(DocumentType eType, SfxObjectShell* pDrDocSh)
: FmFormModel( !utl::ConfigManager::IsFuzzing() ? SvtPathOptions().GetPalettePath() : OUString(), nullptr, pDrDocSh ) : FmFormModel( !utl::ConfigManager::IsFuzzing() ? SvtPathOptions().GetPalettePath() : OUString(), nullptr, pDrDocSh )
, mpOutliner(nullptr) , mpOutliner(nullptr)
......
...@@ -55,29 +55,6 @@ MasterPageDescriptor::MasterPageDescriptor ( ...@@ -55,29 +55,6 @@ MasterPageDescriptor::MasterPageDescriptor (
{ {
} }
MasterPageDescriptor::MasterPageDescriptor (const MasterPageDescriptor& rDescriptor)
: maToken(rDescriptor.maToken),
meOrigin(rDescriptor.meOrigin),
msURL(rDescriptor.msURL),
msPageName(rDescriptor.msPageName),
msStyleName(rDescriptor.msStyleName),
mbIsPrecious(rDescriptor.mbIsPrecious),
mpMasterPage(rDescriptor.mpMasterPage),
mpSlide(rDescriptor.mpSlide),
maSmallPreview(rDescriptor.maSmallPreview),
maLargePreview(rDescriptor.maLargePreview),
mpPreviewProvider(rDescriptor.mpPreviewProvider),
mpPageObjectProvider(rDescriptor.mpPageObjectProvider),
mnTemplateIndex(rDescriptor.mnTemplateIndex),
meURLClassification(rDescriptor.meURLClassification),
mnUseCount(rDescriptor.mnUseCount)
{
}
MasterPageDescriptor::~MasterPageDescriptor()
{
}
void MasterPageDescriptor::SetToken (MasterPageContainer::Token aToken) void MasterPageDescriptor::SetToken (MasterPageContainer::Token aToken)
{ {
maToken = aToken; maToken = aToken;
......
...@@ -46,8 +46,6 @@ public: ...@@ -46,8 +46,6 @@ public:
const bool bIsPrecious, const bool bIsPrecious,
const std::shared_ptr<PageObjectProvider>& rpPageObjectProvider, const std::shared_ptr<PageObjectProvider>& rpPageObjectProvider,
const std::shared_ptr<PreviewProvider>& rpPreviewProvider); const std::shared_ptr<PreviewProvider>& rpPreviewProvider);
MasterPageDescriptor (const MasterPageDescriptor& rDescriptor);
~MasterPageDescriptor();
void SetToken (MasterPageContainer::Token aToken); void SetToken (MasterPageContainer::Token aToken);
......
...@@ -45,12 +45,6 @@ public: ...@@ -45,12 +45,6 @@ public:
public: public:
Representative (const Bitmap& rBitmap, const bool bIsExcluded) Representative (const Bitmap& rBitmap, const bool bIsExcluded)
: maBitmap(rBitmap), mbIsExcluded(bIsExcluded) {} : maBitmap(rBitmap), mbIsExcluded(bIsExcluded) {}
Representative (const Representative& rOther)
: maBitmap(rOther.maBitmap), mbIsExcluded(rOther.mbIsExcluded) {}
Representative& operator= (Representative const& rOther)
{ if (&rOther != this) {maBitmap = rOther.maBitmap; mbIsExcluded = rOther.mbIsExcluded; }
return *this;
}
Bitmap maBitmap; Bitmap maBitmap;
bool mbIsExcluded; bool mbIsExcluded;
......
...@@ -198,7 +198,6 @@ class InsertPosition ...@@ -198,7 +198,6 @@ class InsertPosition
{ {
public: public:
InsertPosition(); InsertPosition();
InsertPosition& operator= (const InsertPosition& rInsertPosition);
bool operator== (const InsertPosition& rInsertPosition) const; bool operator== (const InsertPosition& rInsertPosition) const;
bool operator!= (const InsertPosition& rInsertPosition) const; bool operator!= (const InsertPosition& rInsertPosition) const;
......
...@@ -1175,23 +1175,6 @@ InsertPosition::InsertPosition() ...@@ -1175,23 +1175,6 @@ InsertPosition::InsertPosition()
{ {
} }
InsertPosition& InsertPosition::operator= (const InsertPosition& rInsertPosition)
{
if (this != &rInsertPosition)
{
mnRow = rInsertPosition.mnRow;
mnColumn = rInsertPosition.mnColumn;
mnIndex = rInsertPosition.mnIndex;
mbIsAtRunStart = rInsertPosition.mbIsAtRunStart;
mbIsAtRunEnd = rInsertPosition.mbIsAtRunEnd;
mbIsExtraSpaceNeeded = rInsertPosition.mbIsExtraSpaceNeeded;
maLocation = rInsertPosition.maLocation;
maLeadingOffset = rInsertPosition.maLeadingOffset;
maTrailingOffset = rInsertPosition.maTrailingOffset;
}
return *this;
}
bool InsertPosition::operator== (const InsertPosition& rInsertPosition) const bool InsertPosition::operator== (const InsertPosition& rInsertPosition) const
{ {
// Do not compare the geometrical information (maLocation). // Do not compare the geometrical information (maLocation).
......
...@@ -44,15 +44,6 @@ IteratorPosition::IteratorPosition() ...@@ -44,15 +44,6 @@ IteratorPosition::IteratorPosition()
{ {
} }
IteratorPosition::IteratorPosition (const IteratorPosition& aPosition)
: mxObject(aPosition.mxObject)
, mnText(aPosition.mnText)
, mnPageIndex(aPosition.mnPageIndex)
, mePageKind(aPosition.mePageKind)
, meEditMode(aPosition.meEditMode)
{
}
bool IteratorPosition::operator== (const IteratorPosition& aPosition) const bool IteratorPosition::operator== (const IteratorPosition& aPosition) const
{ {
return mxObject.get() == aPosition.mxObject.get() return mxObject.get() == aPosition.mxObject.get()
......
...@@ -56,8 +56,6 @@ public: ...@@ -56,8 +56,6 @@ public:
ShellDescriptor (); ShellDescriptor ();
explicit ShellDescriptor (ShellId nId); explicit ShellDescriptor (ShellId nId);
ShellDescriptor (const ShellDescriptor& rDescriptor);
ShellDescriptor& operator= (const ShellDescriptor& rDescriptor);
vcl::Window* GetWindow() const; vcl::Window* GetWindow() const;
}; };
...@@ -1173,26 +1171,6 @@ ShellDescriptor::ShellDescriptor ( ...@@ -1173,26 +1171,6 @@ ShellDescriptor::ShellDescriptor (
{ {
} }
ShellDescriptor::ShellDescriptor (const ShellDescriptor& rDescriptor)
: mpShell(rDescriptor.mpShell),
mnId(rDescriptor.mnId),
mpFactory(rDescriptor.mpFactory),
mbIsListenerAddedToWindow(rDescriptor.mbIsListenerAddedToWindow)
{
}
ShellDescriptor& ShellDescriptor::operator= (const ShellDescriptor& rDescriptor)
{
if (this != &rDescriptor)
{
mpShell = rDescriptor.mpShell;
mnId = rDescriptor.mnId;
mpFactory = rDescriptor.mpFactory;
mbIsListenerAddedToWindow = rDescriptor.mbIsListenerAddedToWindow;
}
return *this;
}
vcl::Window* ShellDescriptor::GetWindow() const vcl::Window* ShellDescriptor::GetWindow() const
{ {
ViewShell* pViewShell = dynamic_cast<ViewShell*>(mpShell); ViewShell* pViewShell = dynamic_cast<ViewShell*>(mpShell);
......
...@@ -35,17 +35,6 @@ SaxAttrList::SaxAttrList( const std::unordered_map< OUString, OUString >& rMap ) ...@@ -35,17 +35,6 @@ SaxAttrList::SaxAttrList( const std::unordered_map< OUString, OUString >& rMap )
} }
} }
SaxAttrList::SaxAttrList( const SaxAttrList& rClone ) :
cppu::WeakImplHelper<css::xml::sax::XAttributeList, css::util::XCloneable>(rClone),
m_aAttributes( rClone.m_aAttributes ),
m_aIndexMap( rClone.m_aIndexMap )
{
}
SaxAttrList::~SaxAttrList()
{
}
namespace { namespace {
OUString getCDATAString() OUString getCDATAString()
{ {
......
...@@ -48,8 +48,6 @@ namespace pdfi ...@@ -48,8 +48,6 @@ namespace pdfi
public: public:
explicit SaxAttrList( const std::unordered_map< OUString, OUString >& ); explicit SaxAttrList( const std::unordered_map< OUString, OUString >& );
SaxAttrList( const SaxAttrList& );
virtual ~SaxAttrList() override;
// css::xml::sax::XAttributeList // css::xml::sax::XAttributeList
virtual sal_Int16 SAL_CALL getLength() override; virtual sal_Int16 SAL_CALL getLength() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment