diff options
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r-- | sw/source/ui/table/convert.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/table/tabledlg.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/table/convert.cxx b/sw/source/ui/table/convert.cxx index e1bc1d6e272e..2beeaef07aa6 100644 --- a/sw/source/ui/table/convert.cxx +++ b/sw/source/ui/table/convert.cxx @@ -61,9 +61,9 @@ void SwConvertTableDlg::GetValues( sal_Unicode& rDelim, rDelim = ';'; nSaveButtonState = 1; } - else if( mpOtherBtn->IsChecked() && mpOtherEd->GetText().Len() ) + else if( mpOtherBtn->IsChecked() && !mpOtherEd->GetText().isEmpty() ) { - uOther = mpOtherEd->GetText().GetChar( 0 ); + uOther = mpOtherEd->GetText()[0]; rDelim = uOther; nSaveButtonState = 3; } diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx index cb8f631c006d..4c4da43aca89 100644 --- a/sw/source/ui/table/tabledlg.cxx +++ b/sw/source/ui/table/tabledlg.cxx @@ -398,8 +398,8 @@ sal_Bool SwFormatTablePage::FillItemSet( SfxItemSet& rCoreSet ) if(bModified) { - if( m_pBottomMF->GetText() != m_pBottomMF->GetSavedValue() || - m_pTopMF->GetText() != m_pTopMF->GetSavedValue() ) + if( m_pBottomMF->GetText() != OUString(m_pBottomMF->GetSavedValue()) || + m_pTopMF->GetText() != OUString(m_pTopMF->GetSavedValue()) ) { SvxULSpaceItem aULSpace(RES_UL_SPACE); aULSpace.SetUpper( (sal_uInt16) m_pTopMF->Denormalize( @@ -410,7 +410,7 @@ sal_Bool SwFormatTablePage::FillItemSet( SfxItemSet& rCoreSet ) } } - if(m_pNameED->GetText() != m_pNameED->GetSavedValue()) + if(m_pNameED->GetText() != OUString(m_pNameED->GetSavedValue())) { rCoreSet.Put(SfxStringItem( FN_PARAM_TABLE_NAME, m_pNameED->GetText())); bModified = sal_True; |