Kaydet (Commit) 4ae319ae authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Michael Stahl

tdf#90341 Clean up excessive const_cast'ing

RequestApplyChanges()'s call sites do not require its constness.

Change-Id: Iaf9108375db7503fe1a3bd8275e13dbdddf95ab5
Reviewed-on: https://gerrit.libreoffice.org/21068Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst b3afc03b
......@@ -147,9 +147,9 @@ public:
bool operator == (const SmFormat &rFormat) const;
inline bool operator != (const SmFormat &rFormat) const;
void RequestApplyChanges() const
void RequestApplyChanges()
{
const_cast<SmFormat *>(this)->Broadcast(SfxSimpleHint(HINT_FORMATCHANGED));
Broadcast(SfxSimpleHint(HINT_FORMATCHANGED));
}
};
......
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