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 <[email protected]>
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

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to