mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
(no bug) Replace two c-style casts in nsFrame.cpp with const_cast<>. (no review; trivial/non-functional)
This commit is contained in:
parent
41da4e36b5
commit
39c340ae62
@ -2507,7 +2507,7 @@ nsFrame::IsSelectable(bool* aSelectable, uint8_t* aSelectStyle) const
|
|||||||
// AUTO -> CELL -> TEXT -> AUTO, the returned value is TEXT
|
// AUTO -> CELL -> TEXT -> AUTO, the returned value is TEXT
|
||||||
//
|
//
|
||||||
uint8_t selectStyle = NS_STYLE_USER_SELECT_AUTO;
|
uint8_t selectStyle = NS_STYLE_USER_SELECT_AUTO;
|
||||||
nsIFrame* frame = (nsIFrame*)this;
|
nsIFrame* frame = const_cast<nsFrame*>(this);
|
||||||
|
|
||||||
while (frame) {
|
while (frame) {
|
||||||
const nsStyleUIReset* userinterface = frame->StyleUIReset();
|
const nsStyleUIReset* userinterface = frame->StyleUIReset();
|
||||||
@ -4518,7 +4518,7 @@ NS_IMETHODIMP nsFrame::GetOffsetFromView(nsPoint& aOffset,
|
|||||||
nsView** aView) const
|
nsView** aView) const
|
||||||
{
|
{
|
||||||
NS_PRECONDITION(nullptr != aView, "null OUT parameter pointer");
|
NS_PRECONDITION(nullptr != aView, "null OUT parameter pointer");
|
||||||
nsIFrame* frame = (nsIFrame*)this;
|
nsIFrame* frame = const_cast<nsFrame*>(this);
|
||||||
|
|
||||||
*aView = nullptr;
|
*aView = nullptr;
|
||||||
aOffset.MoveTo(0, 0);
|
aOffset.MoveTo(0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user