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 <kris@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
Context
- [Libreoffice] [PATCH] Use NSString in template specification instead of objc_object (in macosxspell) · Kristian Rietveld
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.