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
9bd2b842
Kaydet (Commit)
9bd2b842
authored
Mar 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I71ebd11d850304772535cfb873086176d301172a
üst
b8577031
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
pyuno_loader.cxx
pyuno/source/loader/pyuno_loader.cxx
+2
-2
pyuno.cxx
pyuno/source/module/pyuno.cxx
+1
-1
pyuno_adapter.cxx
pyuno/source/module/pyuno_adapter.cxx
+4
-4
pyuno_type.cxx
pyuno/source/module/pyuno_type.cxx
+2
-2
pyuno_util.cxx
pyuno/source/module/pyuno_util.cxx
+1
-1
No files found.
pyuno/source/loader/pyuno_loader.cxx
Dosyayı görüntüle @
9bd2b842
...
...
@@ -94,7 +94,7 @@ static PyRef getLoaderModule() throw( RuntimeException )
static
PyRef
getObjectFromLoaderModule
(
const
char
*
func
)
throw
(
RuntimeException
)
{
PyRef
object
(
PyDict_GetItemString
(
getLoaderModule
().
get
(),
(
char
*
)
func
)
);
PyRef
object
(
PyDict_GetItemString
(
getLoaderModule
().
get
(),
func
)
);
if
(
!
object
.
is
()
)
{
OUStringBuffer
buf
;
...
...
@@ -215,7 +215,7 @@ Reference< XInterface > CreateInstance( const Reference< XComponentContext > & c
#endif
#if PY_MAJOR_VERSION >= 3
PyImport_AppendInittab
(
(
char
*
)
"pyuno"
,
PyInit_pyuno
);
PyImport_AppendInittab
(
"pyuno"
,
PyInit_pyuno
);
#else
PyImport_AppendInittab
(
(
char
*
)
"pyuno"
,
initpyuno
);
#endif
...
...
pyuno/source/module/pyuno.cxx
Dosyayı görüntüle @
9bd2b842
...
...
@@ -365,7 +365,7 @@ PyObject *PyUNO_invoke( PyObject *object, const char *name , PyObject *args )
}
PyTuple_SetItem
(
paras
.
get
(),
i
,
element
);
}
callable
=
PyRef
(
PyObject_GetAttrString
(
object
,
(
char
*
)
name
),
SAL_NO_ACQUIRE
);
callable
=
PyRef
(
PyObject_GetAttrString
(
object
,
name
),
SAL_NO_ACQUIRE
);
if
(
!
callable
.
is
()
)
return
0
;
}
...
...
pyuno/source/module/pyuno_adapter.cxx
Dosyayı görüntüle @
9bd2b842
...
...
@@ -223,7 +223,7 @@ Any Adapter::invoke( const OUString &aFunctionName,
}
// get callable
PyRef
method
(
PyObject_GetAttrString
(
mWrappedObject
.
get
(),
(
char
*
)
TO_ASCII
(
aFunctionName
)),
PyRef
method
(
PyObject_GetAttrString
(
mWrappedObject
.
get
(),
TO_ASCII
(
aFunctionName
)),
SAL_NO_ACQUIRE
);
raiseInvocationTargetExceptionWhenNeeded
(
runtime
);
if
(
!
method
.
is
()
)
...
...
@@ -359,7 +359,7 @@ void Adapter::setValue( const OUString & aPropertyName, const Any & value )
PyRef
obj
=
runtime
.
any2PyObject
(
value
);
PyObject_SetAttrString
(
mWrappedObject
.
get
(),
(
char
*
)
TO_ASCII
(
aPropertyName
),
obj
.
get
()
);
mWrappedObject
.
get
(),
TO_ASCII
(
aPropertyName
),
obj
.
get
()
);
raiseInvocationTargetExceptionWhenNeeded
(
runtime
);
}
...
...
@@ -377,7 +377,7 @@ Any Adapter::getValue( const OUString & aPropertyName )
{
Runtime
runtime
;
PyRef
pyRef
(
PyObject_GetAttrString
(
mWrappedObject
.
get
(),
(
char
*
)
TO_ASCII
(
aPropertyName
)
),
PyObject_GetAttrString
(
mWrappedObject
.
get
(),
TO_ASCII
(
aPropertyName
)
),
SAL_NO_ACQUIRE
);
if
(
!
pyRef
.
is
()
||
PyErr_Occurred
())
...
...
@@ -405,7 +405,7 @@ sal_Bool Adapter::hasProperty( const OUString & aPropertyName )
PyThreadAttach
guard
(
mInterpreter
);
{
bRet
=
PyObject_HasAttrString
(
mWrappedObject
.
get
()
,
(
char
*
)
TO_ASCII
(
aPropertyName
));
mWrappedObject
.
get
()
,
TO_ASCII
(
aPropertyName
));
}
return
bRet
;
}
...
...
pyuno/source/module/pyuno_type.cxx
Dosyayı görüntüle @
9bd2b842
...
...
@@ -97,7 +97,7 @@ const char *typeClassToString( TypeClass t )
static
PyRef
getClass
(
const
Runtime
&
r
,
const
char
*
name
)
{
return
PyRef
(
PyDict_GetItemString
(
r
.
getImpl
()
->
cargo
->
getUnoModule
().
get
(),
(
char
*
)
name
)
);
return
PyRef
(
PyDict_GetItemString
(
r
.
getImpl
()
->
cargo
->
getUnoModule
().
get
(),
name
)
);
}
PyRef
getTypeClass
(
const
Runtime
&
r
)
...
...
@@ -236,7 +236,7 @@ Type PyType2Type( PyObject * o ) throw(RuntimeException )
static
PyObject
*
callCtor
(
const
Runtime
&
r
,
const
char
*
clazz
,
const
PyRef
&
args
)
{
PyRef
code
(
PyDict_GetItemString
(
r
.
getImpl
()
->
cargo
->
getUnoModule
().
get
(),
(
char
*
)
clazz
)
);
PyRef
code
(
PyDict_GetItemString
(
r
.
getImpl
()
->
cargo
->
getUnoModule
().
get
(),
clazz
)
);
if
(
!
code
.
is
()
)
{
OStringBuffer
buf
;
...
...
pyuno/source/module/pyuno_util.cxx
Dosyayı görüntüle @
9bd2b842
...
...
@@ -102,7 +102,7 @@ OUString pyString2ustring( PyObject *pystr )
PyRef
getObjectFromUnoModule
(
const
Runtime
&
runtime
,
const
char
*
func
)
throw
(
RuntimeException
)
{
PyRef
object
(
PyDict_GetItemString
(
runtime
.
getImpl
()
->
cargo
->
getUnoModule
().
get
(),
(
char
*
)
func
)
);
PyRef
object
(
PyDict_GetItemString
(
runtime
.
getImpl
()
->
cargo
->
getUnoModule
().
get
(),
func
)
);
if
(
!
object
.
is
()
)
{
OUStringBuffer
buf
;
...
...
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