зеркало из https://github.com/mozilla/pjs.git
Uninitialized variable compiler warnings on Linux
This commit is contained in:
Родитель
92e0d37356
Коммит
e75e683b6a
|
@ -7561,6 +7561,9 @@ void CEditBuffer::ChangeTableSelection(ED_HitType iHitType, ED_MoveSelType iMove
|
||||||
if( !pCell )
|
if( !pCell )
|
||||||
pCell = pTable->GetLastCellInColumn(pCurrentCell);
|
pCell = pTable->GetLastCellInColumn(pCurrentCell);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( iMoveType == ED_MOVE_NEXT )
|
else if( iMoveType == ED_MOVE_NEXT )
|
||||||
|
@ -7588,6 +7591,9 @@ void CEditBuffer::ChangeTableSelection(ED_HitType iHitType, ED_MoveSelType iMove
|
||||||
// At last row end -- wrap to first cell of current column
|
// At last row end -- wrap to first cell of current column
|
||||||
pCell = pTable->GetFirstCellInColumn(pCurrentCell);
|
pCell = pTable->GetFirstCellInColumn(pCurrentCell);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8722,7 +8728,7 @@ ED_LinkId CEditBuffer::GetHREFLinkID(){
|
||||||
|
|
||||||
char* CEditBuffer::GetHREFText(){
|
char* CEditBuffer::GetHREFText(){
|
||||||
CEditLeafElement *pElement = m_pCurrent;
|
CEditLeafElement *pElement = m_pCurrent;
|
||||||
ED_LinkId id;
|
ED_LinkId id=0;
|
||||||
char* pBuf = 0;
|
char* pBuf = 0;
|
||||||
|
|
||||||
if( pElement && pElement->IsText() &&
|
if( pElement && pElement->IsText() &&
|
||||||
|
@ -13101,6 +13107,8 @@ EDT_ClipboardResult CEditBuffer::PasteHTML( IStreamIn& stream, ED_PasteType iPas
|
||||||
case ED_COPY_CELLS:
|
case ED_COPY_CELLS:
|
||||||
iPasteType = ED_PASTE_COLUMN_BEFORE;
|
iPasteType = ED_PASTE_COLUMN_BEFORE;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return PasteCellsIntoTable(stream, iPasteType);
|
return PasteCellsIntoTable(stream, iPasteType);
|
||||||
|
@ -14975,7 +14983,7 @@ ED_DropType CEditBuffer::GetTableDropRegion(int32 *pX, int32 *pY, int32 *pWidth,
|
||||||
int32 y = *pY;
|
int32 y = *pY;
|
||||||
int32 line = lo_PointToLine(m_pContext, state, x, y);
|
int32 line = lo_PointToLine(m_pContext, state, x, y);
|
||||||
|
|
||||||
int32 iLeft, iTop, iRight, iBottom;
|
int32 iLeft=0, iTop=0, iRight=0, iBottom=0;
|
||||||
int32 left_limit, right_limit, top_limit, bottom_limit, right, bottom;
|
int32 left_limit, right_limit, top_limit, bottom_limit, right, bottom;
|
||||||
|
|
||||||
lo_GetLineEnds(m_pContext, state, line, &pLoElement, &pEndLoElement);
|
lo_GetLineEnds(m_pContext, state, line, &pLoElement, &pEndLoElement);
|
||||||
|
@ -15343,7 +15351,7 @@ XP_Bool CEditBuffer::SelectTableElement( int32 x, int32 y, LO_Element *pLoElemen
|
||||||
LO_Element *pLastCellElement = NULL;
|
LO_Element *pLastCellElement = NULL;
|
||||||
LO_Element *pElement = lo_GetFirstCellInColumnOrRow(m_pContext, pLoElement, x, y, bSelCol, &pLastCellElement );
|
LO_Element *pElement = lo_GetFirstCellInColumnOrRow(m_pContext, pLoElement, x, y, bSelCol, &pLastCellElement );
|
||||||
|
|
||||||
int32 iColLeft, iRowTop;
|
int32 iColLeft=0, iRowTop=0;
|
||||||
if( !pElement )
|
if( !pElement )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if( bSelCol )
|
if( bSelCol )
|
||||||
|
|
Загрузка…
Ссылка в новой задаче