Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b2d99944
Kaydet (Commit)
b2d99944
authored
May 22, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
stoc: remove using namespace from headers
Change-Id: I1bee29ddcef66cb38ef2619507ad66c886f6f20d
üst
71e36bbc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
41 deletions
+58
-41
base.hxx
stoc/source/corereflection/base.hxx
+0
-0
crarray.cxx
stoc/source/corereflection/crarray.cxx
+6
-3
crbase.cxx
stoc/source/corereflection/crbase.cxx
+8
-5
crcomp.cxx
stoc/source/corereflection/crcomp.cxx
+9
-6
crefl.cxx
stoc/source/corereflection/crefl.cxx
+7
-5
crenum.cxx
stoc/source/corereflection/crenum.cxx
+8
-5
criface.cxx
stoc/source/corereflection/criface.cxx
+20
-17
No files found.
stoc/source/corereflection/base.hxx
Dosyayı görüntüle @
b2d99944
This diff is collapsed.
Click to expand it.
stoc/source/corereflection/crarray.cxx
Dosyayı görüntüle @
b2d99944
...
...
@@ -22,6 +22,9 @@
#include "base.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
{
...
...
@@ -50,13 +53,13 @@ void ArrayIdlClassImpl::release() throw()
Sequence
<
Type
>
ArrayIdlClassImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlArray
>
*
)
0
),
IdlClassImpl
::
getTypes
()
);
s_pTypes
=
&
s_aTypes
;
...
...
stoc/source/corereflection/crbase.cxx
Dosyayı görüntüle @
b2d99944
...
...
@@ -22,6 +22,9 @@
#include "base.hxx"
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
{
...
...
@@ -30,15 +33,15 @@ ClassNameList g_aClassNames;
#endif
Mutex
&
getMutexAccess
()
::
osl
::
Mutex
&
getMutexAccess
()
{
static
Mutex
*
s_pMutex
=
0
;
static
::
osl
::
Mutex
*
s_pMutex
=
0
;
if
(
!
s_pMutex
)
{
MutexGuard
aGuard
(
Mutex
::
getGlobalMutex
()
);
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
if
(
!
s_pMutex
)
{
static
Mutex
s_aMutex
;
static
::
osl
::
Mutex
s_aMutex
;
s_pMutex
=
&
s_aMutex
;
}
}
...
...
@@ -263,7 +266,7 @@ Reference< XIdlClass > IdlMemberImpl::getDeclaringClass()
if
(
!
_xDeclClass
.
is
())
{
Reference
<
XIdlClass
>
xDeclClass
(
getReflection
()
->
forType
(
getDeclTypeDescr
()
)
);
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
_xDeclClass
=
xDeclClass
;
}
...
...
stoc/source/corereflection/crcomp.cxx
Dosyayı görüntüle @
b2d99944
...
...
@@ -25,6 +25,9 @@
#include "base.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
{
...
...
@@ -92,13 +95,13 @@ void IdlCompFieldImpl::release() throw()
Sequence
<
Type
>
IdlCompFieldImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
...
...
@@ -121,7 +124,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
{
if
(
!
_xDeclClass
.
is
())
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
{
typelib_CompoundTypeDescription
*
pTD
=
...
...
@@ -311,7 +314,7 @@ Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses()
{
if
(
!
_xSuperClass
.
is
())
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xSuperClass
.
is
())
{
typelib_CompoundTypeDescription
*
pCompTypeDescr
=
getTypeDescr
()
->
pBaseTypeDescription
;
...
...
@@ -341,7 +344,7 @@ Reference< XIdlField > CompoundIdlClassImpl::getField( const OUString & rName )
Sequence
<
Reference
<
XIdlField
>
>
CompoundIdlClassImpl
::
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pFields
)
{
sal_Int32
nAll
=
0
;
...
...
stoc/source/corereflection/crefl.cxx
Dosyayı görüntüle @
b2d99944
...
...
@@ -27,9 +27,11 @@
#include "com/sun/star/uno/RuntimeException.hpp"
#include <uno/lbnames.h>
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
com
::
sun
::
star
::
registry
;
using
namespace
css
;
using
namespace
css
::
uno
;
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
registry
;
using
namespace
cppu
;
using
namespace
osl
;
...
...
@@ -298,7 +300,7 @@ Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName )
_aElements
.
setValue
(
rName
,
aRet
);
else
{
throw
NoSuchElementException
(
rName
,
Reference
<
XInterface
>
()
);
throw
container
::
NoSuchElementException
(
rName
,
Reference
<
XInterface
>
()
);
}
}
return
aRet
;
...
...
@@ -311,7 +313,7 @@ sal_Bool IdlReflectionServiceImpl::hasByHierarchicalName( const OUString & rName
{
return
getByHierarchicalName
(
rName
).
hasValue
();
}
catch
(
NoSuchElementException
&
)
catch
(
container
::
NoSuchElementException
&
)
{
}
return
sal_False
;
...
...
stoc/source/corereflection/crenum.cxx
Dosyayı görüntüle @
b2d99944
...
...
@@ -17,9 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "base.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
{
...
...
@@ -90,13 +93,13 @@ void IdlEnumFieldImpl::release() throw()
Sequence
<
Type
>
IdlEnumFieldImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
...
...
@@ -193,7 +196,7 @@ Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields()
{
if
(
!
_pFields
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pFields
)
{
sal_Int32
nFields
=
getTypeDescr
()
->
nEnumValues
;
...
...
stoc/source/corereflection/criface.cxx
Dosyayı görüntüle @
b2d99944
...
...
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#ifdef SAL_UNX
#include <sal/alloca.h>
...
...
@@ -35,6 +34,10 @@
#include "com/sun/star/uno/RuntimeException.hpp"
#include "cppuhelper/exc_hlp.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
{
...
...
@@ -104,13 +107,13 @@ void IdlAttributeFieldImpl::release() throw()
Sequence
<
Type
>
IdlAttributeFieldImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
...
...
@@ -133,7 +136,7 @@ Reference< XIdlClass > IdlAttributeFieldImpl::getDeclaringClass()
{
if
(
!
_xDeclClass
.
is
())
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
{
OUString
aName
(
getAttributeTypeDescr
()
->
aBase
.
aBase
.
pTypeName
);
...
...
@@ -399,13 +402,13 @@ void IdlInterfaceMethodImpl::release() throw()
Sequence
<
Type
>
IdlInterfaceMethodImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlMethod
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
s_pTypes
=
&
s_aTypes
;
...
...
@@ -427,7 +430,7 @@ Reference< XIdlClass > IdlInterfaceMethodImpl::getDeclaringClass()
{
if
(
!
_xDeclClass
.
is
())
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
{
OUString
aName
(
getMethodTypeDescr
()
->
aBase
.
aBase
.
pTypeName
);
...
...
@@ -458,7 +461,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getExceptionTypes()
{
if
(
!
_pExceptionTypes
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pExceptionTypes
)
{
sal_Int32
nExc
=
getMethodTypeDescr
()
->
nExceptions
;
...
...
@@ -484,7 +487,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getParameterTypes()
{
if
(
!
_pParamTypes
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pParamTypes
)
{
sal_Int32
nParams
=
getMethodTypeDescr
()
->
nParams
;
...
...
@@ -510,7 +513,7 @@ Sequence< ParamInfo > IdlInterfaceMethodImpl::getParameterInfos()
{
if
(
!
_pParamInfos
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pParamInfos
)
{
sal_Int32
nParams
=
getMethodTypeDescr
()
->
nParams
;
...
...
@@ -778,7 +781,7 @@ InterfaceIdlClassImpl::~InterfaceIdlClassImpl()
Sequence
<
Reference
<
XIdlClass
>
>
InterfaceIdlClassImpl
::
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
MutexGuard
aGuard
(
getMutexAccess
());
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
());
if
(
_xSuperClasses
.
getLength
()
==
0
)
{
typelib_InterfaceTypeDescription
*
pType
=
getTypeDescr
();
_xSuperClasses
.
realloc
(
pType
->
nBaseTypes
);
...
...
@@ -853,7 +856,7 @@ Uik InterfaceIdlClassImpl::getUik()
Sequence
<
Reference
<
XIdlMethod
>
>
InterfaceIdlClassImpl
::
getMethods
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
initMembers
();
...
...
@@ -873,7 +876,7 @@ Sequence< Reference< XIdlMethod > > InterfaceIdlClassImpl::getMethods()
Sequence
<
Reference
<
XIdlField
>
>
InterfaceIdlClassImpl
::
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
initMembers
();
...
...
@@ -893,7 +896,7 @@ Sequence< Reference< XIdlField > > InterfaceIdlClassImpl::getFields()
Reference
<
XIdlMethod
>
InterfaceIdlClassImpl
::
getMethod
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
initMembers
();
...
...
@@ -923,7 +926,7 @@ Reference< XIdlMethod > InterfaceIdlClassImpl::getMethod( const OUString & rName
Reference
<
XIdlField
>
InterfaceIdlClassImpl
::
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
initMembers
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment