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
c14ed11d
Kaydet (Commit)
c14ed11d
authored
Nis 10, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up uses of SAL_U/SAL_W: basic
Change-Id: I755b3b781c42cc9af61c0b90621d2eb7f544df62
üst
b35552f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
test_vba.cxx
basic/qa/cppunit/test_vba.cxx
+8
-7
methods.cxx
basic/source/runtime/methods.cxx
+2
-1
sbxdec.cxx
basic/source/sbx/sbxdec.cxx
+6
-2
No files found.
basic/qa/cppunit/test_vba.cxx
Dosyayı görüntüle @
c14ed11d
...
@@ -139,14 +139,14 @@ void VBATest::testMiscOLEStuff()
...
@@ -139,14 +139,14 @@ void VBATest::testMiscOLEStuff()
return
;
// can't do anything, skip test
return
;
// can't do anything, skip test
const
int
nBufSize
=
1024
*
4
;
const
int
nBufSize
=
1024
*
4
;
sal_Unicode
sBuf
[
nBufSize
];
wchar_t
sBuf
[
nBufSize
];
SQLGetInstalledDriversW
(
SAL_W
(
sBuf
)
,
nBufSize
,
nullptr
);
SQLGetInstalledDriversW
(
sBuf
,
nBufSize
,
nullptr
);
const
sal_Unicode
*
pODBCDriverName
=
sBuf
;
const
wchar_t
*
pODBCDriverName
=
sBuf
;
bool
bFound
=
false
;
bool
bFound
=
false
;
for
(;
wcslen
(
SAL_W
(
pODBCDriverName
)
)
!=
0
;
pODBCDriverName
+=
wcslen
(
SAL_W
(
pODBCDriverName
)
)
+
1
)
{
for
(;
wcslen
(
pODBCDriverName
)
!=
0
;
pODBCDriverName
+=
wcslen
(
pODBCDriverName
)
+
1
)
{
if
(
wcscmp
(
SAL_W
(
pODBCDriverName
)
,
L"Microsoft Excel Driver (*.xls)"
)
==
0
||
if
(
wcscmp
(
pODBCDriverName
,
L"Microsoft Excel Driver (*.xls)"
)
==
0
||
wcscmp
(
SAL_W
(
pODBCDriverName
)
,
L"Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)"
)
==
0
)
{
wcscmp
(
pODBCDriverName
,
L"Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)"
)
==
0
)
{
bFound
=
true
;
bFound
=
true
;
break
;
break
;
}
}
...
@@ -171,7 +171,8 @@ void VBATest::testMiscOLEStuff()
...
@@ -171,7 +171,8 @@ void VBATest::testMiscOLEStuff()
sPath
=
sPath
.
replaceAll
(
"/"
,
"
\\
"
);
sPath
=
sPath
.
replaceAll
(
"/"
,
"
\\
"
);
aArgs
[
0
]
<<=
sPath
;
aArgs
[
0
]
<<=
sPath
;
aArgs
[
1
]
<<=
OUString
(
pODBCDriverName
);
aArgs
[
1
]
<<=
OUString
(
reinterpret_cast
<
sal_Unicode
const
*>
(
pODBCDriverName
));
for
(
sal_uInt32
i
=
0
;
i
<
SAL_N_ELEMENTS
(
macroSource
);
++
i
)
for
(
sal_uInt32
i
=
0
;
i
<
SAL_N_ELEMENTS
(
macroSource
);
++
i
)
{
{
...
...
basic/source/runtime/methods.cxx
Dosyayı görüntüle @
c14ed11d
...
@@ -416,7 +416,8 @@ RTLFUNC(CurDir)
...
@@ -416,7 +416,8 @@ RTLFUNC(CurDir)
wchar_t
pBuffer
[
_MAX_PATH
];
wchar_t
pBuffer
[
_MAX_PATH
];
if
(
_wgetdcwd
(
nCurDir
,
pBuffer
,
_MAX_PATH
)
!=
nullptr
)
if
(
_wgetdcwd
(
nCurDir
,
pBuffer
,
_MAX_PATH
)
!=
nullptr
)
{
{
rPar
.
Get
(
0
)
->
PutString
(
OUString
(
SAL_U
(
pBuffer
)
)
);
rPar
.
Get
(
0
)
->
PutString
(
OUString
(
reinterpret_cast
<
sal_Unicode
const
*>
(
pBuffer
)
)
);
}
}
else
else
{
{
...
...
basic/source/sbx/sbxdec.cxx
Dosyayı görüntüle @
c14ed11d
...
@@ -226,11 +226,15 @@ bool SbxDecimal::setString( OUString* pOUString )
...
@@ -226,11 +226,15 @@ bool SbxDecimal::setString( OUString* pOUString )
pBuffer
[
i
]
=
','
;
pBuffer
[
i
]
=
','
;
i
++
;
i
++
;
}
}
hResult
=
VarDecFromStr
(
SAL_W
(
pBuffer
.
get
()),
nLANGID
,
0
,
&
maDec
);
hResult
=
VarDecFromStr
(
reinterpret_cast
<
wchar_t
const
*>
(
pBuffer
.
get
()),
nLANGID
,
0
,
&
maDec
);
}
}
else
else
{
{
hResult
=
VarDecFromStr
(
SAL_W
(
pOUString
->
getStr
()),
nLANGID
,
0
,
&
maDec
);
hResult
=
VarDecFromStr
(
reinterpret_cast
<
wchar_t
const
*>
(
pOUString
->
getStr
()),
nLANGID
,
0
,
&
maDec
);
}
}
bRet
=
(
hResult
==
S_OK
);
bRet
=
(
hResult
==
S_OK
);
return
bRet
;
return
bRet
;
...
...
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