From e17be13daa8632bb4a9f7e8703c751d2beab9e6d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 18 Dec 2014 16:44:06 +0100 Subject: Work around MSVC bug Change-Id: I592eb027f4c13cf75f1f0a443696d4d4e8e50e04 --- dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 953b183bf769..86be630d8080 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -901,8 +901,8 @@ bool OSelectionBrowseBox::SaveModified() case BROW_VIS_ROW: { bool bOldValue = m_pVisibleCell->GetBox().GetSavedValue() != TRISTATE_FALSE; - strOldCellContents = bOldValue ? "1" : "0"; - sNewValue = !bOldValue ? "1" : "0"; + strOldCellContents = bOldValue ? OUStringLiteral("1") : OUStringLiteral("0"); + sNewValue = !bOldValue ? OUStringLiteral("1") : OUStringLiteral("0"); } if((m_bOrderByUnRelated || pEntry->GetOrderDir() == ORDER_NONE) && (m_bGroupByUnRelated || !pEntry->IsGroupBy())) @@ -2231,7 +2231,7 @@ OUString OSelectionBrowseBox::GetCellContents(sal_Int32 nCellIndex, sal_uInt16 n switch (nCellIndex) { case BROW_VIS_ROW : - return pEntry->IsVisible() ? "1" : "0"; + return pEntry->IsVisible() ? OUStringLiteral("1") : OUStringLiteral("0"); case BROW_ORDER_ROW: { sal_Int32 nIdx = m_pOrderCell->GetSelectEntryPos(); -- cgit