[Libreoffice-commits] core.git: dbaccess/source

Stephan Bergmann sbergman at redhat.com
Thu Dec 18 07:44:32 PST 2014


 dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e17be13daa8632bb4a9f7e8703c751d2beab9e6d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Dec 18 16:44:06 2014 +0100

    Work around MSVC bug
    
    Change-Id: I592eb027f4c13cf75f1f0a443696d4d4e8e50e04

diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 953b183..86be630 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();


More information about the Libreoffice-commits mailing list