Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C08ADD9F for ; Wed, 26 Sep 2012 08:59:16 +0000 (UTC) Received: (qmail 463 invoked by uid 500); 26 Sep 2012 08:59:16 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 395 invoked by uid 500); 26 Sep 2012 08:59:15 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 386 invoked by uid 99); 26 Sep 2012 08:59:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 08:59:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of awf.aoo@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 08:59:07 +0000 Received: by bkcjk7 with SMTP id jk7so146315bkc.6 for ; Wed, 26 Sep 2012 01:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=lHv5cEtwuxH1oMEG3tI7UK2EeWYwwDoB0iBKftU6CZU=; b=uD7MlId3qN/CVuw6L2OZHKkuZRIRuh4XXbgwvVznCOp0+MSkASBb76bsm95RA24dgv SoSso4t446yL9LZnzr2Kd98tmnPgozyYWIxAwhRXNcVP2FkbzUrEmXIVWW3+G/fAQclj W18PRVnLKJt3VFR6BjYOTcCP5kWUvK5afhD4xzgJohiUl61edgXpS50ViieWiiAGp7cJ nmXj8bv37wZy461qYVgn6t4cOyX1ChhnsmSyIXB30h4Mc6nCmYpONl1KGr55Qv3RySW9 zKLsETyU5QN7HI8F++cxGBWEh+B5js0ztiDQzIcysHjqCS2DjBj75W2EbntAsf+HTyNT qFhA== Received: by 10.204.156.202 with SMTP id y10mr6567033bkw.6.1348649926275; Wed, 26 Sep 2012 01:58:46 -0700 (PDT) Received: from [9.155.131.98] (deibp9eh1--blueice2n2.emea.ibm.com. [195.212.29.172]) by mx.google.com with ESMTPS id hy11sm1789572bkc.5.2012.09.26.01.58.45 (version=SSLv3 cipher=OTHER); Wed, 26 Sep 2012 01:58:45 -0700 (PDT) Message-ID: <5062C3C4.5010609@googlemail.com> Date: Wed, 26 Sep 2012 10:58:44 +0200 From: Andre User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: WaE: sd/source/ui/slideshow/slideshowimpl.cxx References: <279B7438-C697-424B-AA2A-75A343718A2E@Janik.cz> <5062C095.9020808@googlemail.com> <87F02611-C7FF-4497-938D-3273A01B85F7@Janik.cz> In-Reply-To: <87F02611-C7FF-4497-938D-3273A01B85F7@Janik.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 09/26/2012 10:48 AM, Pavel Jan�k wrote: > On Sep 26, 2012, at 10:45 AM, Andre wrote: > >> On 09/25/2012 07:57 PM, Pavel Jan�k wrote: >>> Hi, >>> >>> this code emits Warning about unused bLoad: >>> >>> bool bLoad = vcl::ImageRepository::loadBrandingImage( >>> rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "logo" ) ), >>> aImage ); >>> OSL_ENSURE( bLoad, "Can't load logo image"); >>> >>> Can't we OSL_ENSURE that aImage is initialized properly instead? >> Maybe we can do that additionally, loading is not the same as initialization. >> I would just add >> >> (void)bLoad; > That was my first guess, but the code looks strange this way ;-) I agree :-) > But I'd let this decision on the author of the code. I don�t know if he still monitors this list. -Andre