Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

Recent commit to libreoffice-3-5 breaks the build, because of API
difference between OUString and String.

Patch attached. Please apply.

-- 
Lionel
From b9cc9f9dbfc2af7ec1f9c971c345860e11c57c98 Mon Sep 17 00:00:00 2001
From: Lionel Elie Mamane <lionel@mamane.lu>
Date: Thu, 19 Jul 2012 12:56:39 +0200
Subject: [PATCH] fix build: OUString<->String

Change-Id: I1f2a29fd6524e160174a2d2b28dc6bed0bcdcdcc
---
 sw/source/core/fields/reffld.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx
index e762286..3a77ef6 100644
--- a/sw/source/core/fields/reffld.cxx
+++ b/sw/source/core/fields/reffld.cxx
@@ -309,7 +309,7 @@ void SwGetRefField::UpdateField( const SwTxtFld* pFldTxtAttr )
     rtl::OUString const Text = pTxtNd->GetTxt();
     unsigned const nCatStart = Text.indexOf(sSetRefName);
     unsigned const nCatEnd = nCatStart == unsigned(-1) ?
-        unsigned(-1) : nCatStart + sSetRefName.getLength();
+        unsigned(-1) : nCatStart + sSetRefName.Len();
     bool const bHasCat = nCatStart != unsigned(-1);
 
     // length of the referenced text
-- 
1.7.10


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.