Kaydet (Commit) 8be00a3f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Help GCC

Change-Id: Ibeace7ce7621033cf04e3186c212bbb4a27492a1
üst 475cbbb2
...@@ -377,7 +377,7 @@ OUString SAL_CALL SvxUnoTextRangeBase::getString() ...@@ -377,7 +377,7 @@ OUString SAL_CALL SvxUnoTextRangeBase::getString()
} }
else else
{ {
return ""; return OUString();
} }
} }
......
...@@ -102,21 +102,21 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid ...@@ -102,21 +102,21 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid
{ {
if(!pPara || !pIndent || !pBullOver) if(!pPara || !pIndent || !pBullOver)
{ {
return ""; return OUString();
} }
LwpSilverBullet* pSilverBullet = pPara->GetSilverBullet(); LwpSilverBullet* pSilverBullet = pPara->GetSilverBullet();
if (!pSilverBullet) if (!pSilverBullet)
{ {
assert(false); assert(false);
return ""; return OUString();
} }
LwpPara* pBulletPara = pSilverBullet->GetBulletPara(); LwpPara* pBulletPara = pSilverBullet->GetBulletPara();
if (!pBulletPara) if (!pBulletPara)
{ {
assert(false); assert(false);
return ""; return OUString();
} }
LwpParaProperty* pProp = pPara->GetProperty(PP_LOCAL_INDENT); LwpParaProperty* pProp = pPara->GetProperty(PP_LOCAL_INDENT);
......
...@@ -192,7 +192,7 @@ OUString LwpSilverBullet::GetBulletFontName() ...@@ -192,7 +192,7 @@ OUString LwpSilverBullet::GetBulletFontName()
//foundry has been set? //foundry has been set?
if (!m_pFoundry) if (!m_pFoundry)
{ {
return ""; return OUString();
} }
LwpFontManager& rFontMgr = m_pFoundry->GetFontManger(); LwpFontManager& rFontMgr = m_pFoundry->GetFontManger();
...@@ -203,7 +203,7 @@ OUString LwpSilverBullet::GetBulletFontName() ...@@ -203,7 +203,7 @@ OUString LwpSilverBullet::GetBulletFontName()
//final fontid is valid? //final fontid is valid?
if (nFinalFont > 255 || nFinalFont == 0) if (nFinalFont > 255 || nFinalFont == 0)
{ {
return ""; return OUString();
} }
//get font name from font manager. //get font name from font manager.
...@@ -252,7 +252,7 @@ OUString LwpSilverBullet::GetNumCharByStyleID(LwpFribParaNumber* pParaNumber) ...@@ -252,7 +252,7 @@ OUString LwpSilverBullet::GetNumCharByStyleID(LwpFribParaNumber* pParaNumber)
if (!pParaNumber) if (!pParaNumber)
{ {
assert(false); assert(false);
return ""; return OUString();
} }
OUString strNumChar("1"); OUString strNumChar("1");
...@@ -363,7 +363,7 @@ OUString LwpSilverBullet::GetAdditionalName(sal_uInt8 nPos) ...@@ -363,7 +363,7 @@ OUString LwpSilverBullet::GetAdditionalName(sal_uInt8 nPos)
LwpFrib* pParaFrib = m_pBulletPara->GetFribs().GetFribs(); LwpFrib* pParaFrib = m_pBulletPara->GetFribs().GetFribs();
if (!pParaFrib) if (!pParaFrib)
{ {
return ""; return OUString();
} }
while (pParaFrib) while (pParaFrib)
...@@ -373,7 +373,7 @@ OUString LwpSilverBullet::GetAdditionalName(sal_uInt8 nPos) ...@@ -373,7 +373,7 @@ OUString LwpSilverBullet::GetAdditionalName(sal_uInt8 nPos)
ModifierInfo* pMoInfo = pParaFrib->GetModifiers(); ModifierInfo* pMoInfo = pParaFrib->GetModifiers();
if (!pMoInfo) if (!pMoInfo)
{ {
return ""; return OUString();
} }
sal_uInt16 nHideLevels = pMoInfo->aTxtAttrOverride.GetHideLevels(); sal_uInt16 nHideLevels = pMoInfo->aTxtAttrOverride.GetHideLevels();
sal_uInt16 nType = static_cast<LwpFribDocVar*>(pParaFrib)->GetType(); sal_uInt16 nType = static_cast<LwpFribDocVar*>(pParaFrib)->GetType();
...@@ -434,7 +434,7 @@ OUString LwpSilverBullet::GetSectionName() ...@@ -434,7 +434,7 @@ OUString LwpSilverBullet::GetSectionName()
LwpStory* pStory = dynamic_cast<LwpStory*>(m_aStory.obj(VO_STORY).get()); LwpStory* pStory = dynamic_cast<LwpStory*>(m_aStory.obj(VO_STORY).get());
if (!pStory) if (!pStory)
{ {
return ""; return OUString();
} }
return pStory->GetSectionName(); return pStory->GetSectionName();
......
...@@ -1584,7 +1584,7 @@ OUString ToolBox::GetQuickHelpText( sal_uInt16 nItemId ) const ...@@ -1584,7 +1584,7 @@ OUString ToolBox::GetQuickHelpText( sal_uInt16 nItemId ) const
if ( pItem ) if ( pItem )
return pItem->maQuickHelpText; return pItem->maQuickHelpText;
else else
return ""; return OUString();
} }
void ToolBox::SetHelpText( sal_uInt16 nItemId, const OUString& rText ) void ToolBox::SetHelpText( sal_uInt16 nItemId, const OUString& rText )
......
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