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
132b4e91
Kaydet (Commit)
132b4e91
authored
Mar 09, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid reserved identifiers (use unnamed namespace, just in case)
Change-Id: I3e34368a674e9f128a32604c82181b1b99632c37
üst
9128facc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
access_control.cxx
cppuhelper/source/access_control.cxx
+10
-7
No files found.
cppuhelper/source/access_control.cxx
Dosyayı görüntüle @
132b4e91
...
...
@@ -69,11 +69,13 @@ AccessControl::AccessControl( AccessControl const & ac )
}
}
namespace
{
#ifdef SAL_W32
#pragma pack(push, 8)
#endif
// binary comp. to all Permission structs
struct
__
permission
struct
permission
{
rtl_uString
*
m_str1
;
rtl_uString
*
m_str2
;
...
...
@@ -82,12 +84,11 @@ AccessControl::AccessControl( AccessControl const & ac )
#pragma pack(pop)
#endif
inline
void
__checkPermission
(
inline
void
checkPermission
(
Reference
<
security
::
XAccessController
>
const
&
xController
,
Type
const
&
type
,
rtl_uString
*
str1
,
rtl_uString
*
str2
)
{
__
permission
perm
;
permission
perm
;
perm
.
m_str1
=
str1
;
perm
.
m_str2
=
str2
;
...
...
@@ -98,10 +99,12 @@ inline void __checkPermission(
xController
->
checkPermission
(
*
static_cast
<
Any
*
>
(
&
a
)
);
}
}
void
AccessControl
::
checkRuntimePermission
(
OUString
const
&
name
)
{
__
checkPermission
(
checkPermission
(
m_xController
,
cppu
::
UnoType
<
security
::
RuntimePermission
>::
get
(),
name
.
pData
,
nullptr
);
}
...
...
@@ -110,7 +113,7 @@ void AccessControl::checkFilePermission(
OUString
const
&
url
,
OUString
const
&
actions
)
{
__
checkPermission
(
checkPermission
(
m_xController
,
cppu
::
UnoType
<
io
::
FilePermission
>::
get
(),
url
.
pData
,
actions
.
pData
);
}
...
...
@@ -119,7 +122,7 @@ void AccessControl::checkSocketPermission(
OUString
const
&
host
,
OUString
const
&
actions
)
{
__
checkPermission
(
checkPermission
(
m_xController
,
cppu
::
UnoType
<
connection
::
SocketPermission
>::
get
(),
host
.
pData
,
actions
.
pData
);
}
...
...
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