Kaydet (Commit) 3abfdd08 authored tarafından Caolán McNamara's avatar Caolán McNamara

it's surely a bad idea to not crash in dbgutil mode but crash in product mode

Change-Id: Ie72e23a5b3c49b08bcf25a9de2d7c4d4c4e7925d
üst 5c2d43d2
......@@ -45,7 +45,6 @@ $(eval $(call gb_Library_add_exception_objects,basegfx,\
basegfx/source/matrix/b2dhommatrixtools \
basegfx/source/matrix/b3dhommatrix \
basegfx/source/numeric/ftools \
basegfx/source/pixel/bpixel \
basegfx/source/point/b2dpoint \
basegfx/source/point/b2ipoint \
basegfx/source/point/b3dpoint \
......
......@@ -125,9 +125,6 @@ namespace basegfx
{
return (rPixel.maPixelUnion.maCombinedRGBO.mnValue != maPixelUnion.maCombinedRGBO.mnValue);
}
// empty element
static const BPixel& getEmptyBPixel();
};
//////////////////////////////////////////////////////////////////////////
......
......@@ -81,26 +81,14 @@ namespace basegfx
// data access read only
const BPixel& getBPixel(sal_uInt32 nIndex) const
{
#ifdef DBG_UTIL
if(nIndex >= mnCount)
{
OSL_FAIL("getBPixel: Access out of range (!)");
return BPixel::getEmptyBPixel();
}
#endif
assert(nIndex < mnCount); //Access out of range
return mpContent[nIndex];
}
// data access read/write
BPixel& getBPixel(sal_uInt32 nIndex)
{
#ifdef DBG_UTIL
if(nIndex >= mnCount)
{
OSL_FAIL("getBPixel: Access out of range (!)");
return mpContent[0L];
}
#endif
assert(nIndex < mnCount); //Access out of range
return mpContent[nIndex];
}
};
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <basegfx/pixel/bpixel.hxx>
#include <rtl/instance.hxx>
namespace { struct EmptyBPixel : public rtl::Static<basegfx::BPixel, EmptyBPixel> {}; }
//////////////////////////////////////////////////////////////////////////////
namespace basegfx
{
const BPixel& BPixel::getEmptyBPixel()
{
return EmptyBPixel::get();
}
//////////////////////////////////////////////////////////////////////////
// external operators
} // end of namespace basegfx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment