[Libreoffice-commits] .: sc/Library_vbaobj.mk sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Feb 21 07:06:55 PST 2012


 sc/Library_vbaobj.mk                 |    1 
 sc/source/ui/vba/vbacomment.cxx      |    1 
 sc/source/ui/vba/vbacommentshape.cxx |   43 --------------------------------
 sc/source/ui/vba/vbacommentshape.hxx |   46 -----------------------------------
 4 files changed, 91 deletions(-)

New commits:
commit 57d95b35be6b6a5741d4769525ae15a1240c9d9d
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 21 15:05:39 2012 +0000

    WaE: C4610: class 'ScVbaCommentShape' can never be instantiated

diff --git a/sc/Library_vbaobj.mk b/sc/Library_vbaobj.mk
index 60beaf3..6a6b80d 100644
--- a/sc/Library_vbaobj.mk
+++ b/sc/Library_vbaobj.mk
@@ -81,7 +81,6 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
         sc/source/ui/vba/vbacharttitle \
         sc/source/ui/vba/vbacomment \
         sc/source/ui/vba/vbacomments \
-        sc/source/ui/vba/vbacommentshape \
         sc/source/ui/vba/vbacondition \
         sc/source/ui/vba/vbadialog \
         sc/source/ui/vba/vbadialogs \
diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx
index 402d9e9..bfb5d62 100644
--- a/sc/source/ui/vba/vbacomment.cxx
+++ b/sc/source/ui/vba/vbacomment.cxx
@@ -50,7 +50,6 @@
 #include <vbahelper/vbashape.hxx>
 #include "vbaglobals.hxx"
 #include "vbacomments.hxx"
-#include "vbacommentshape.hxx"
 
 using namespace ::ooo::vba;
 using namespace ::com::sun::star;
diff --git a/sc/source/ui/vba/vbacommentshape.cxx b/sc/source/ui/vba/vbacommentshape.cxx
deleted file mode 100644
index 1c942d6..0000000
--- a/sc/source/ui/vba/vbacommentshape.cxx
+++ /dev/null
@@ -1,43 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright IBM Corporation 2009, 2010.
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "vbacommentshape.hxx"
-
-using namespace com::sun::star;
-using namespace ooo::vba;
-
-void SAL_CALL ScVbaCommentShape::Delete() throw (uno::RuntimeException)
-{
-    if ( m_xComment.is() )
-    {
-        m_xComment->Delete();
-    }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/vba/vbacommentshape.hxx b/sc/source/ui/vba/vbacommentshape.hxx
deleted file mode 100644
index 76adc99..0000000
--- a/sc/source/ui/vba/vbacommentshape.hxx
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright IBM Corporation 2009, 2010.
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef SC_VBA_COMMENTSHAPE_HXX
-#define SC_VBA_COMMENTSHAPE_HXX
-
-#include <ooo/vba/excel/XComment.hpp>
-#include <vbahelper/vbashape.hxx>
-
-class ScVbaCommentShape : public ScVbaShape
-{
-    css::uno::Reference< ooo::vba::excel::XComment > m_xComment;
-
-public:
-    // Methods
-    virtual void SAL_CALL Delete() throw (css::uno::RuntimeException);
-};
-#endif //SC_VBA_COMMENTSHAPE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list