Bump for 3.6-28
[LibreOffice.git] / autodoc / source / ary / idl / i_ce.cxx
bloba7f72b90dda1ca34651fb14b442b0a1128981ade
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include <precomp.h>
30 #include <ary/idl/i_ce.hxx>
33 // NOT FULLY DEFINED SERVICES
34 #include <ary/doc/d_oldidldocu.hxx>
35 #include <ary/getncast.hxx>
38 namespace ary
40 namespace idl
43 CodeEntity::CodeEntity()
44 : aDocu(),
45 p2s(0)
49 CodeEntity::~CodeEntity()
53 const Ce_2s &
54 CodeEntity::Secondaries() const
56 return const_cast<CodeEntity*>(this)->Secondaries();
59 Ce_2s &
60 CodeEntity::Secondaries()
62 if (p2s)
63 return *p2s;
64 p2s = Ce_2s::Create_();
65 return *p2s;
68 } // namespace idl
69 } // namespace ary
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */