Kaydet (Commit) 213571db authored tarafından Miklos Vajna's avatar Miklos Vajna

SwTxtSlot::SwTxtSlot now takes an empty reference by default, not a NULL

Change-Id: I3fc7cef18dc1df228a648edb3020a976209f12ee
üst fede08ac
......@@ -1659,7 +1659,7 @@ SwTxtSlot::SwTxtSlot(
const SwLinePortion *pPor,
bool bTxtLen,
bool bExgLists,
OUString const & pCh )
OUString const & rCh )
: pOldTxt(0)
, pOldSmartTagList(0)
, pOldGrammarCheckList(0)
......@@ -1668,13 +1668,13 @@ SwTxtSlot::SwTxtSlot(
, nLen(0)
, pInf(NULL)
{
if( pCh.isEmpty() )
if( rCh.isEmpty() )
{
bOn = pPor->GetExpTxt( *pNew, aTxt );
}
else
{
aTxt = pCh;
aTxt = rCh;
bOn = true;
}
......
......@@ -775,9 +775,9 @@ protected:
SwTxtSizeInfo *pInf;
public:
// The replacement string originates either from the portion via GetExpText()
// or from the char * pCh, if it is not NULL
// or from the rCh, if it is not empty.
SwTxtSlot( const SwTxtSizeInfo *pNew, const SwLinePortion *pPor, bool bTxtLen,
bool bExgLists, OUString const & pCh = OUString() );
bool bExgLists, OUString const & rCh = OUString() );
~SwTxtSlot();
bool IsOn() const { return bOn; }
};
......
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