Kaydet (Commit) d4943089 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1325077 Uninitialized pointer field

Change-Id: I74121c1cc94edf338cf40a3d186308491e1d2409
üst 4d5979d3
......@@ -135,16 +135,15 @@ ESelection OverflowingText::GetInsertionPointSel()
// class NonOverflowingText
NonOverflowingText::NonOverflowingText(const EditTextObject *pTObj, bool bLastParaInterrupted)
: mpContentTextObj(pTObj->Clone()),
mbLastParaInterrupted(bLastParaInterrupted)
NonOverflowingText::NonOverflowingText(const EditTextObject * /*pTObj*/, bool bLastParaInterrupted)
: mbLastParaInterrupted(bLastParaInterrupted)
{
// XXX: may have to delete pTObj
}
NonOverflowingText::NonOverflowingText(const ESelection &aSel, bool bLastParaInterrupted)
: maContentSel(aSel),
mbLastParaInterrupted(bLastParaInterrupted)
: maContentSel(aSel)
, mbLastParaInterrupted(bLastParaInterrupted)
{
}
......
......@@ -96,7 +96,6 @@ private:
NonOverflowingText(const ESelection &aSel, bool bLastParaInterrupted);
friend class Outliner;
const EditTextObject *mpContentTextObj;
const ESelection maContentSel;
const bool mbLastParaInterrupted;
};
......@@ -112,6 +111,7 @@ class EDITENG_DLLPUBLIC OFlowChainedText
{
public:
OFlowChainedText(Outliner *, bool );
~OFlowChainedText();
OutlinerParaObject *InsertOverflowingText(Outliner *, OutlinerParaObject *);
OutlinerParaObject *RemoveOverflowingText(Outliner *);
......
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