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
484401bb
Kaydet (Commit)
484401bb
authored
Ara 18, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unotest: Use appropriate OUString functions on string constants
Change-Id: I449587dd8e6e625e886e4ffc6419c612adffcfde
üst
9c9276c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
16 deletions
+8
-16
getargument.cxx
unotest/source/cpp/getargument.cxx
+1
-2
gettestargument.cxx
unotest/source/cpp/gettestargument.cxx
+1
-2
officeconnection.cxx
unotest/source/cpp/officeconnection.cxx
+2
-6
toabsolutefileurl.cxx
unotest/source/cpp/toabsolutefileurl.cxx
+3
-4
unoexceptionprotector.cxx
...ource/cpp/unoexceptionprotector/unoexceptionprotector.cxx
+1
-2
No files found.
unotest/source/cpp/getargument.cxx
Dosyayı görüntüle @
484401bb
...
@@ -32,8 +32,7 @@ namespace detail {
...
@@ -32,8 +32,7 @@ namespace detail {
bool
getArgument
(
OUString
const
&
name
,
OUString
*
value
)
{
bool
getArgument
(
OUString
const
&
name
,
OUString
*
value
)
{
OSL_ASSERT
(
value
!=
0
);
OSL_ASSERT
(
value
!=
0
);
return
rtl
::
Bootstrap
::
get
(
return
rtl
::
Bootstrap
::
get
(
"arg-"
+
name
,
*
value
);
OUString
(
"arg-"
)
+
name
,
*
value
);
}
}
}
}
...
...
unotest/source/cpp/gettestargument.cxx
Dosyayı görüntüle @
484401bb
...
@@ -28,8 +28,7 @@
...
@@ -28,8 +28,7 @@
namespace
test
{
namespace
test
{
bool
getTestArgument
(
OUString
const
&
name
,
OUString
*
value
)
{
bool
getTestArgument
(
OUString
const
&
name
,
OUString
*
value
)
{
return
detail
::
getArgument
(
return
detail
::
getArgument
(
"testarg."
+
name
,
value
);
OUString
(
"testarg."
)
+
name
,
value
);
}
}
}
}
...
...
unotest/source/cpp/officeconnection.cxx
Dosyayı görüntüle @
484401bb
...
@@ -65,9 +65,7 @@ void OfficeConnection::setUp() {
...
@@ -65,9 +65,7 @@ void OfficeConnection::setUp() {
OUString
argUser
;
OUString
argUser
;
CPPUNIT_ASSERT
(
CPPUNIT_ASSERT
(
detail
::
getArgument
(
OUString
(
"user"
),
&
argUser
));
detail
::
getArgument
(
OUString
(
"user"
),
&
argUser
));
OUString
userArg
(
OUString
userArg
(
"-env:UserInstallation="
+
toAbsoluteFileUrl
(
argUser
));
OUString
(
"-env:UserInstallation="
)
+
toAbsoluteFileUrl
(
argUser
));
OUString
jreArg
(
OUString
jreArg
(
"-env:UNO_JAVA_JFW_ENV_JREHOME=true"
);
"-env:UNO_JAVA_JFW_ENV_JREHOME=true"
);
OUString
classpathArg
(
"-env:UNO_JAVA_JFW_ENV_CLASSPATH=true"
);
OUString
classpathArg
(
"-env:UNO_JAVA_JFW_ENV_CLASSPATH=true"
);
...
@@ -101,9 +99,7 @@ void OfficeConnection::setUp() {
...
@@ -101,9 +99,7 @@ void OfficeConnection::setUp() {
context_
=
context_
=
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
(
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
(
resolver
->
resolve
(
resolver
->
resolve
(
OUString
(
"uno:"
)
+
"uno:"
+
desc
+
";urp;StarOffice.ComponentContext"
),
desc
+
OUString
(
";urp;StarOffice.ComponentContext"
)),
css
::
uno
::
UNO_QUERY_THROW
);
css
::
uno
::
UNO_QUERY_THROW
);
break
;
break
;
}
catch
(
css
::
connection
::
NoConnectException
&
)
{}
}
catch
(
css
::
connection
::
NoConnectException
&
)
{}
...
...
unotest/source/cpp/toabsolutefileurl.cxx
Dosyayı görüntüle @
484401bb
...
@@ -34,15 +34,14 @@ OUString toAbsoluteFileUrl(OUString const & relativePathname) {
...
@@ -34,15 +34,14 @@ OUString toAbsoluteFileUrl(OUString const & relativePathname) {
oslProcessError
e1
=
osl_getProcessWorkingDir
(
&
cwd
.
pData
);
oslProcessError
e1
=
osl_getProcessWorkingDir
(
&
cwd
.
pData
);
if
(
e1
!=
osl_Process_E_None
)
{
if
(
e1
!=
osl_Process_E_None
)
{
throw
css
::
uno
::
RuntimeException
(
throw
css
::
uno
::
RuntimeException
(
OUString
(
"osl_getProcessWorkingDir failed with "
)
+
"osl_getProcessWorkingDir failed with "
+
OUString
::
number
(
e1
));
OUString
::
number
(
e1
));
}
}
OUString
url
;
OUString
url
;
osl
::
FileBase
::
RC
e2
=
osl
::
FileBase
::
getFileURLFromSystemPath
(
osl
::
FileBase
::
RC
e2
=
osl
::
FileBase
::
getFileURLFromSystemPath
(
relativePathname
,
url
);
relativePathname
,
url
);
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
throw
css
::
uno
::
RuntimeException
(
throw
css
::
uno
::
RuntimeException
(
OUString
(
"osl::FileBase::getFileURLFromSystemPath("
)
+
"osl::FileBase::getFileURLFromSystemPath("
+
relativePathname
+
relativePathname
+
") failed with "
+
") failed with "
+
OUString
::
number
(
e2
));
OUString
::
number
(
e2
));
...
@@ -51,7 +50,7 @@ OUString toAbsoluteFileUrl(OUString const & relativePathname) {
...
@@ -51,7 +50,7 @@ OUString toAbsoluteFileUrl(OUString const & relativePathname) {
e2
=
osl
::
FileBase
::
getAbsoluteFileURL
(
cwd
,
url
,
absUrl
);
e2
=
osl
::
FileBase
::
getAbsoluteFileURL
(
cwd
,
url
,
absUrl
);
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
if
(
e2
!=
osl
::
FileBase
::
E_None
)
{
throw
css
::
uno
::
RuntimeException
(
throw
css
::
uno
::
RuntimeException
(
OUString
(
"osl::FileBase::getAbsoluteFileURL("
)
+
"osl::FileBase::getAbsoluteFileURL("
+
cwd
+
", "
+
url
+
cwd
+
", "
+
url
+
") failed with "
+
") failed with "
+
OUString
::
number
(
e2
));
OUString
::
number
(
e2
));
...
...
unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
Dosyayı görüntüle @
484401bb
...
@@ -68,8 +68,7 @@ bool Prot::protect(
...
@@ -68,8 +68,7 @@ bool Prot::protect(
context
,
context
,
CppUnit
::
Message
(
CppUnit
::
Message
(
convert
(
convert
(
OUString
(
"An uncaught exception of type "
)
"An uncaught exception of type "
+
a
.
getValueTypeName
()),
+
a
.
getValueTypeName
()),
convert
(
e
.
Message
)));
convert
(
e
.
Message
)));
}
}
return
false
;
return
false
;
...
...
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