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
de243e8e
Kaydet (Commit)
de243e8e
authored
Haz 27, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up uses of Any::getValue() in vcl
Change-Id: Id835d8d11abcd49320c2ea01ec0ad60402f9e759
üst
48f018ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
bitmapex.cxx
vcl/source/gdi/bitmapex.cxx
+2
-1
configsettings.cxx
vcl/source/gdi/configsettings.cxx
+2
-2
config.cxx
vcl/unx/generic/dtrans/config.cxx
+2
-2
No files found.
vcl/source/gdi/bitmapex.cxx
Dosyayı görüntüle @
de243e8e
...
...
@@ -21,6 +21,7 @@
#include <rtl/crc.h>
#include <rtl/strbuf.hxx>
#include <o3tl/any.hxx>
#include <tools/stream.hxx>
#include <tools/debug.hxx>
#include <tools/rc.h>
...
...
@@ -792,7 +793,7 @@ bool BitmapEx::Create( const css::uno::Reference< css::rendering::XBitmapCanvas
{
// 0 means get BitmapEx
uno
::
Any
aAny
=
xFastPropertySet
->
getFastPropertyValue
(
0
);
std
::
unique_ptr
<
BitmapEx
>
xBitmapEx
(
reinterpret_cast
<
BitmapEx
*>
(
*
static_cast
<
const
sal_Int64
*>
(
aAny
.
getValue
()
)));
std
::
unique_ptr
<
BitmapEx
>
xBitmapEx
(
reinterpret_cast
<
BitmapEx
*>
(
*
o3tl
::
doAccess
<
sal_Int64
>
(
aAny
)));
if
(
xBitmapEx
)
{
*
this
=
*
xBitmapEx
;
...
...
vcl/source/gdi/configsettings.cxx
Dosyayı görüntüle @
de243e8e
...
...
@@ -24,6 +24,7 @@
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <o3tl/any.hxx>
using
namespace
utl
;
using
namespace
vcl
;
...
...
@@ -111,9 +112,8 @@ void SettingsConfigItem::getValues()
const
Any
*
pValue
=
aValues
.
getConstArray
();
for
(
int
i
=
0
;
i
<
aValues
.
getLength
();
i
++
,
pValue
++
)
{
if
(
pValue
->
getValueTypeClass
()
==
TypeClass_STRING
)
if
(
auto
pLine
=
o3tl
::
tryAccess
<
OUString
>
(
*
pValue
)
)
{
const
OUString
*
pLine
=
static_cast
<
const
OUString
*>
(
pValue
->
getValue
());
if
(
!
pLine
->
isEmpty
()
)
m_aSettings
[
aKeyName
][
pFrom
[
i
]
]
=
*
pLine
;
#if OSL_DEBUG_LEVEL > 2
...
...
vcl/unx/generic/dtrans/config.cxx
Dosyayı görüntüle @
de243e8e
...
...
@@ -18,6 +18,7 @@
*/
#include <cstdio>
#include <o3tl/any.hxx>
#include <unotools/configitem.hxx>
#include "X11_selection.hxx"
...
...
@@ -78,9 +79,8 @@ DtransX11ConfigItem::DtransX11ConfigItem() :
Any
*
pValue
=
aValues
.
getArray
();
for
(
int
i
=
0
;
i
<
aValues
.
getLength
();
i
++
,
pValue
++
)
{
if
(
pValue
->
getValueTypeClass
()
==
TypeClass_STRING
)
if
(
auto
pLine
=
o3tl
::
tryAccess
<
OUString
>
(
*
pValue
)
)
{
const
OUString
*
pLine
=
static_cast
<
const
OUString
*>
(
pValue
->
getValue
());
if
(
!
pLine
->
isEmpty
()
)
{
m_nSelectionTimeout
=
pLine
->
toInt32
();
...
...
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