xref: /aoo42x/main/comphelper/source/misc/weak.cxx (revision dde7d3fa)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_comphelper.hxx"
26 
27 #include "comphelper/weak.hxx"
28 
29 using namespace com::sun::star::uno;
30 using namespace com::sun::star::lang;
31 
32 namespace comphelper
33 {
34 
OWeakTypeObject()35 OWeakTypeObject::OWeakTypeObject()
36 {
37 }
38 
~OWeakTypeObject()39 OWeakTypeObject::~OWeakTypeObject()
40 {
41 }
42 
queryInterface(const Type & rType)43 Any SAL_CALL OWeakTypeObject::queryInterface(const Type & rType )	throw (RuntimeException)
44 {
45 	if( rType == XTypeProvider::static_type() )
46 		return Any( Reference< XTypeProvider >(this) );
47 	else
48 		return ::cppu::OWeakObject::queryInterface( rType );
49 }
50 
acquire()51 void SAL_CALL OWeakTypeObject::acquire()	throw ()
52 {
53 	::cppu::OWeakObject::acquire();
54 }
55 
release()56 void SAL_CALL OWeakTypeObject::release()	throw ()
57 {
58 	::cppu::OWeakObject::release();
59 }
60 
getTypes()61 Sequence< Type > SAL_CALL OWeakTypeObject::getTypes(  ) throw (RuntimeException)
62 {
63 	return Sequence< Type >();
64 }
65 
getImplementationId()66 Sequence< ::sal_Int8 > SAL_CALL OWeakTypeObject::getImplementationId(  ) throw (RuntimeException)
67 {
68 	return Sequence< ::sal_Int8 >();
69 }
70 
71 }
72 
73