Kaydet (Commit) 3723784a authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to int + constify

Change-Id: I408970c4e8e614886a01981d8f3599e3622a33a2
üst 20d7f29e
...@@ -330,7 +330,7 @@ void SwView::SpellError(LanguageType eLang) ...@@ -330,7 +330,7 @@ void SwView::SpellError(LanguageType eLang)
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
sal_Bool bFocus = GetEditWin().HasFocus(); sal_Bool bFocus = GetEditWin().HasFocus();
#endif #endif
sal_uInt16 nPend = 0; int nPend = 0;
if ( m_pWrtShell->ActionPend() ) if ( m_pWrtShell->ActionPend() )
{ {
...@@ -349,7 +349,7 @@ void SwView::SpellError(LanguageType eLang) ...@@ -349,7 +349,7 @@ void SwView::SpellError(LanguageType eLang)
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
bFocus = rEditWin.HasFocus(); bFocus = rEditWin.HasFocus();
#endif #endif
sal_uInt16 nWaitCnt = 0; int nWaitCnt = 0;
while( rEditWin.IsWait() ) while( rEditWin.IsWait() )
{ {
rEditWin.LeaveWait(); rEditWin.LeaveWait();
...@@ -708,7 +708,7 @@ bool SwView::ExecSpellPopup(const Point& rPt) ...@@ -708,7 +708,7 @@ bool SwView::ExecSpellPopup(const Point& rPt)
//! 'custom made' menu... *sigh* (code copied from sfx2 and framework) //! 'custom made' menu... *sigh* (code copied from sfx2 and framework)
if ( pMenu ) if ( pMenu )
{ {
sal_uInt16 nId = ((PopupMenu*)pMenu)->Execute(m_pEditWin, aPixPos); const sal_uInt16 nId = ((PopupMenu*)pMenu)->Execute(m_pEditWin, aPixPos);
OUString aCommand = ((PopupMenu*)pMenu)->GetItemCommand(nId); OUString aCommand = ((PopupMenu*)pMenu)->GetItemCommand(nId);
if (aCommand.isEmpty() ) if (aCommand.isEmpty() )
{ {
......
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