This fixes the following warnings:

/source/libo/libo/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx:176:39:
error: reference to type 'const value_type' (aka 'objc_object *const') could not bind to an rvalue of type 'id'
                postspdict.push_back( [ aLocales objectAtIndex:i ] );
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_vector.h:600:35:
note: passing argument to parameter '__x' here
      push_back(const value_type& __x)



regards,

-kris.

>From bb05fb39884b6d08d8354489a94d4a0927b3ce5f Mon Sep 17 00:00:00 2001
From: Kristian Rietveld <k...@lanedo.com>
Date: Sat, 22 Oct 2011 09:49:38 +0200
Subject: [PATCH 5/8] Use NSString in template specification instead of
 objc_object

---
 .../source/spellcheck/macosxspell/macspellimp.cxx  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx 
b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
index 97407f2..e7bf20f 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
@@ -156,7 +156,7 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
         SvtPathOptions aPathOpt;
         rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8;
 
-        std::vector<objc_object *> postspdict;
+        std::vector<NSString *> postspdict;
         std::vector<dictentry *> postupdict;
 
 
-- 
1.7.4.4

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to