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