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
4019acf2
Kaydet (Commit)
4019acf2
authored
Haz 07, 2012
tarafından
Martyn Russell
Kaydeden (comit)
Michael Meeks
Haz 12, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck: avoid unreachable code warnings
Change-Id: I1d126eb10bfebc747d4bb6d153b80abe73a1e81e
üst
cb045089
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
22 deletions
+20
-22
xdialogcreator.cxx
embeddedobj/source/msole/xdialogcreator.cxx
+6
-8
so_env.cxx
extensions/source/nsplugin/source/so_env.cxx
+5
-6
autorecovery.cxx
framework/source/services/autorecovery.cxx
+9
-8
No files found.
embeddedobj/source/msole/xdialogcreator.cxx
Dosyayı görüntüle @
4019acf2
...
...
@@ -288,15 +288,14 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia
else
throw
ucb
::
CommandAbortedException
();
#else
throw
lang
::
NoSupportException
();
// TODO:
#endif
OSL_ENSURE
(
aObjectInfo
.
Object
.
is
(),
"No object was created!
\n
"
);
if
(
!
aObjectInfo
.
Object
.
is
()
)
throw
uno
::
RuntimeException
();
return
aObjectInfo
;
#else
throw
lang
::
NoSupportException
();
// TODO:
#endif
}
//-------------------------------------------------------------------------
...
...
@@ -312,7 +311,6 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceInitF
embed
::
InsertedObjectInfo
aObjectInfo
;
#ifdef WNT
if
(
!
xStorage
.
is
()
)
throw
lang
::
IllegalArgumentException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"No parent storage is provided!
\n
"
)),
uno
::
Reference
<
uno
::
XInterface
>
(
static_cast
<
::
cppu
::
OWeakObject
*
>
(
this
)
),
...
...
@@ -341,15 +339,15 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceInitF
aObjectInfo
.
Object
=
xResult
;
// TODO/LATER: in case of iconifie object the icon should be stored in aObjectInfo
#else
throw
lang
::
NoSupportException
();
// TODO:
#endif
OSL_ENSURE
(
aObjectInfo
.
Object
.
is
(),
"No object was created!
\n
"
);
if
(
!
aObjectInfo
.
Object
.
is
()
)
throw
uno
::
RuntimeException
();
return
aObjectInfo
;
#else
throw
lang
::
NoSupportException
();
// TODO:
#endif
}
//-------------------------------------------------------------------------
...
...
extensions/source/nsplugin/source/so_env.cxx
Dosyayı görüntüle @
4019acf2
...
...
@@ -255,7 +255,7 @@ int findReadSversion(void** aResult, int /*bWnt*/, const char* /*tag*/, const ch
return
0
;
/* .. now in $HOME */
#endif
#endif
// LINUX
sprintf
(
lnkFileName
,
"%s/.mozilla/plugins/libnpsoplugin%s"
,
getenv
(
"HOME"
),
SAL_DLLEXTENSION
);
#ifdef LINUX
ssize_t
len
=
readlink
(
lnkFileName
,
realFileName
,
NPP_PATH_MAX
-
1
);
...
...
@@ -267,18 +267,17 @@ int findReadSversion(void** aResult, int /*bWnt*/, const char* /*tag*/, const ch
realFileName
[
len
]
=
'\0'
;
if
(
NULL
==
(
pTempZero
=
strstr
(
realFileName
,
"/program/libnpsoplugin"
SAL_DLLEXTENSION
)))
#else
#else
// LINUX
if
((
0
>
readlink
(
lnkFileName
,
realFileName
,
NPP_PATH_MAX
))
||
(
NULL
==
(
pTempZero
=
strstr
(
realFileName
,
"/program/libnpsoplugin"
SAL_DLLEXTENSION
))))
#endif
#endif
// LINUX
{
*
realFileName
=
0
;
return
-
1
;
}
*
pTempZero
=
0
;
return
0
;
#endif
#ifdef WNT
#elif defined WNT // UNIX
static
char
realFileName
[
NPP_PATH_MAX
]
=
{
0
};
*
aResult
=
realFileName
;
HKEY
hKey
;
...
...
@@ -316,7 +315,7 @@ int findReadSversion(void** aResult, int /*bWnt*/, const char* /*tag*/, const ch
*
pTempZero
=
0
;
debug_fprintf
(
NSP_LOG_APPEND
,
"realFileName is %s
\n
"
,
realFileName
);
return
0
;
#endif
#endif
// UNIX
}
// Return the install dir path of staroffice, return value like "/home/build/staroffice"
...
...
framework/source/services/autorecovery.cxx
Dosyayı görüntüle @
4019acf2
...
...
@@ -1331,11 +1331,11 @@ void AutoRecovery::implts_flushConfigItem(const AutoRecovery::TDocumentInfo& rIn
css
::
uno
::
Reference
<
css
::
util
::
XChangesBatch
>
xFlush
(
xCFG
,
css
::
uno
::
UNO_QUERY_THROW
);
xFlush
->
commitChanges
();
#ifdef TRIGGER_FULL_DISC_CHECK
#ifdef TRIGGER_FULL_DISC_CHECK
throw
css
::
uno
::
Exception
();
#endif
#else // TRIGGER_FULL_DISC_CHECK
nRetry
=
0
;
#endif // TRIGGER_FULL_DISC_CHECK
}
catch
(
const
css
::
uno
::
Exception
&
)
{
...
...
@@ -2363,12 +2363,13 @@ void AutoRecovery::implts_saveOneDoc(const ::rtl::OUString&
{
xDocRecover
->
storeToRecoveryFile
(
rInfo
.
NewTempURL
,
lNewArgs
.
getAsConstPropertyValueList
()
);
#ifdef TRIGGER_FULL_DISC_CHECK
#ifdef TRIGGER_FULL_DISC_CHECK
throw
css
::
uno
::
Exception
();
#endif
#else // TRIGGER_FULL_DISC_CHECK
bError
=
sal_False
;
nRetry
=
0
;
#endif // TRIGGER_FULL_DISC_CHECK
}
catch
(
const
css
::
uno
::
Exception
&
)
{
...
...
@@ -3454,10 +3455,9 @@ void AutoRecovery::implts_verifyCacheAgainstDesktopDocumentList()
//-----------------------------------------------
sal_Bool
AutoRecovery
::
impl_enoughDiscSpace
(
sal_Int32
nRequiredSpace
)
{
#ifdef SIMULATE_FULL_DISC
#ifdef SIMULATE_FULL_DISC
return
sal_False
;
#endif
#else // SIMULATE_FULL_DISC
// In case an error occures and we are not able to retrieve the needed information
// it's better to "disable" the feature ShowErrorOnFullDisc !
// Otherwhise we start a confusing process of error handling ...
...
...
@@ -3478,6 +3478,7 @@ sal_Bool AutoRecovery::impl_enoughDiscSpace(sal_Int32 nRequiredSpace)
sal_uInt64
nFreeMB
=
(
nFreeSpace
/
1048576
);
return
(
nFreeMB
>=
(
sal_uInt64
)
nRequiredSpace
);
#endif // SIMULATE_FULL_DISC
}
//-----------------------------------------------
...
...
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