Kaydet (Commit) 0681a6ee authored tarafından Noel Grandin's avatar Noel Grandin

more SAL_WARN_UNUSED

Change-Id: Idf44fe0302b4504c443f083e527b63b2461ada85
üst c866ace4
...@@ -195,14 +195,6 @@ namespace oglcanvas ...@@ -195,14 +195,6 @@ namespace oglcanvas
::basegfx::triangulator::triangulate( ::basegfx::triangulator::triangulate(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(mxClip))); ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(mxClip)));
basegfx::B2DPolygon rTriangleList(
basegfx::tools::clipTriangleListOnRange(
rTriangulatedPolygon,
basegfx::B2DRange(
0,0,
aSpriteSizePixel.getX(),
aSpriteSizePixel.getY())));
glBegin(GL_TRIANGLES); glBegin(GL_TRIANGLES);
for( sal_uInt32 i=0; i<rTriangulatedPolygon.count(); i++ ) for( sal_uInt32 i=0; i<rTriangulatedPolygon.count(); i++ )
{ {
......
...@@ -886,7 +886,6 @@ namespace oglcanvas ...@@ -886,7 +886,6 @@ namespace oglcanvas
// setup overall transform only now. View clip above was // setup overall transform only now. View clip above was
// relative to view transform // relative to view transform
::basegfx::B2DHomMatrix aTransform;
::canvas::tools::mergeViewAndRenderTransform(o_action.maTransform, ::canvas::tools::mergeViewAndRenderTransform(o_action.maTransform,
viewState, viewState,
renderState); renderState);
......
...@@ -602,8 +602,6 @@ namespace drawinglayer ...@@ -602,8 +602,6 @@ namespace drawinglayer
basegfx::B2DRange PolygonStrokeArrowPrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewInformation) const basegfx::B2DRange PolygonStrokeArrowPrimitive2D::getB2DRange(const geometry::ViewInformation2D& rViewInformation) const
{ {
basegfx::B2DRange aRetval;
if(getStart().isActive() || getEnd().isActive()) if(getStart().isActive() || getEnd().isActive())
{ {
// use decomposition when line start/end is used // use decomposition when line start/end is used
......
...@@ -161,7 +161,6 @@ OUString HelpOnStartup::its_getModuleIdFromEnv(const css::uno::Sequence< css::be ...@@ -161,7 +161,6 @@ OUString HelpOnStartup::its_getModuleIdFromEnv(const css::uno::Sequence< css::be
{ {
::comphelper::SequenceAsHashMap lArgs (lArguments); ::comphelper::SequenceAsHashMap lArgs (lArguments);
::comphelper::SequenceAsHashMap lEnvironment = lArgs.getUnpackedValueOrDefault("Environment", css::uno::Sequence< css::beans::NamedValue >()); ::comphelper::SequenceAsHashMap lEnvironment = lArgs.getUnpackedValueOrDefault("Environment", css::uno::Sequence< css::beans::NamedValue >());
::comphelper::SequenceAsHashMap lJobConfig = lArgs.getUnpackedValueOrDefault("JobConfig", css::uno::Sequence< css::beans::NamedValue >());
// check for right environment. // check for right environment.
// If it's not a DocumentEvent, which triggered this job, // If it's not a DocumentEvent, which triggered this job,
......
...@@ -29,7 +29,7 @@ namespace basegfx ...@@ -29,7 +29,7 @@ namespace basegfx
class B2DTuple; class B2DTuple;
class Impl2DHomMatrix; class Impl2DHomMatrix;
class BASEGFX_DLLPUBLIC B2DHomMatrix class SAL_WARN_UNUSED BASEGFX_DLLPUBLIC B2DHomMatrix
{ {
public: public:
typedef o3tl::cow_wrapper< Impl2DHomMatrix > ImplType; typedef o3tl::cow_wrapper< Impl2DHomMatrix > ImplType;
......
...@@ -41,7 +41,7 @@ namespace basegfx ...@@ -41,7 +41,7 @@ namespace basegfx
namespace basegfx namespace basegfx
{ {
class BASEGFX_DLLPUBLIC B2DPolygon class SAL_WARN_UNUSED BASEGFX_DLLPUBLIC B2DPolygon
{ {
public: public:
typedef o3tl::cow_wrapper< ImplB2DPolygon > ImplType; typedef o3tl::cow_wrapper< ImplB2DPolygon > ImplType;
......
...@@ -50,7 +50,7 @@ namespace basegfx ...@@ -50,7 +50,7 @@ namespace basegfx
@see B1DRange @see B1DRange
*/ */
class B2DRange class SAL_WARN_UNUSED B2DRange
{ {
public: public:
typedef double ValueType; typedef double ValueType;
......
...@@ -30,7 +30,7 @@ namespace basegfx ...@@ -30,7 +30,7 @@ namespace basegfx
{ {
class B3DHomMatrix; class B3DHomMatrix;
class B3DRange class SAL_WARN_UNUSED B3DRange
{ {
typedef ::basegfx::BasicRange< double, DoubleTraits > MyBasicRange; typedef ::basegfx::BasicRange< double, DoubleTraits > MyBasicRange;
......
...@@ -35,7 +35,7 @@ namespace basegfx ...@@ -35,7 +35,7 @@ namespace basegfx
@see B3DTuple @see B3DTuple
*/ */
class BASEGFX_DLLPUBLIC B3DVector : public ::basegfx::B3DTuple class SAL_WARN_UNUSED BASEGFX_DLLPUBLIC B3DVector : public ::basegfx::B3DTuple
{ {
public: public:
/** Create a 3D Vector /** Create a 3D Vector
......
...@@ -47,7 +47,7 @@ struct SequenceAsHashMapBase : public std::unordered_map< ...@@ -47,7 +47,7 @@ struct SequenceAsHashMapBase : public std::unordered_map<
{ {
}; };
class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase class SAL_WARN_UNUSED COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase
{ {
public: public:
......
...@@ -589,8 +589,6 @@ awt::Point PresenterCanvas::GetOffset (const Reference<awt::XWindow>& rxBaseWind ...@@ -589,8 +589,6 @@ awt::Point PresenterCanvas::GetOffset (const Reference<awt::XWindow>& rxBaseWind
const css::geometry::AffineMatrix2D& rViewTransform, const css::geometry::AffineMatrix2D& rViewTransform,
const awt::Point& rOffset) const awt::Point& rOffset)
{ {
::basegfx::B2DRectangle aClipRectangle;
VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow(mxWindow); VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow(mxWindow);
if (!pWindow) if (!pWindow)
return ::basegfx::B2DRectangle(); return ::basegfx::B2DRectangle();
......
...@@ -937,7 +937,6 @@ void Svx3DWin::Update( SfxItemSet& rAttrs ) ...@@ -937,7 +937,6 @@ void Svx3DWin::Update( SfxItemSet& rAttrs )
// Lighting // Lighting
Color aColor; Color aColor;
basegfx::B3DVector aVector;
// Light 1 (Color) // Light 1 (Color)
eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTCOLOR_1); eState = rAttrs.GetItemState(SDRATTR_3DSCENE_LIGHTCOLOR_1);
if( eState != SfxItemState::DONTCARE ) if( eState != SfxItemState::DONTCARE )
...@@ -1848,7 +1847,6 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs ) ...@@ -1848,7 +1847,6 @@ void Svx3DWin::GetAttr( SfxItemSet& rAttrs )
rAttrs.InvalidateItem(SDRATTR_3DSCENE_FOCAL_LENGTH); rAttrs.InvalidateItem(SDRATTR_3DSCENE_FOCAL_LENGTH);
// Lighting // Lighting
basegfx::B3DVector aVector;
Color aColor; Color aColor;
const SfxItemSet aLightItemSet(m_pCtlLightPreview->GetSvx3DLightControl().Get3DAttributes()); const SfxItemSet aLightItemSet(m_pCtlLightPreview->GetSvx3DLightControl().Get3DAttributes());
......
...@@ -47,7 +47,6 @@ namespace sdr ...@@ -47,7 +47,6 @@ namespace sdr
drawinglayer::primitive2d::createNewSdrLineFillShadowAttribute(rItemSet, false)); drawinglayer::primitive2d::createNewSdrLineFillShadowAttribute(rItemSet, false));
// get sphere center and size for geometry // get sphere center and size for geometry
basegfx::B3DRange aSphereRange;
const basegfx::B3DPoint aSpherePosition(GetE3dSphereObj().Center()); const basegfx::B3DPoint aSpherePosition(GetE3dSphereObj().Center());
const basegfx::B3DVector aSphereSize(GetE3dSphereObj().Size()); const basegfx::B3DVector aSphereSize(GetE3dSphereObj().Size());
basegfx::B3DHomMatrix aWorldTransform; basegfx::B3DHomMatrix aWorldTransform;
......
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