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
8be8bcf7
Kaydet (Commit)
8be8bcf7
authored
Eki 24, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
desktop: try to cope with MSVC being silly with C4702 and C4715
Change-Id: I9812079bd9987c841dd1856573de768d7192873b
üst
f260c656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
dp_persmap.cxx
desktop/source/deployment/dp_persmap.cxx
+12
-6
No files found.
desktop/source/deployment/dp_persmap.cxx
Dosyayı görüntüle @
8be8bcf7
...
...
@@ -122,6 +122,14 @@ bool PersistentMap::has( OString const & key ) const
return
get
(
0
,
key
);
}
// for 3 functions here MSVC gives C4702 "unreachable code" if optimization
// is enabled and return is there and C4715 "not all control paths return
// a value" if optimization disabled and no return...
#ifdef _MSC_VER
#pragma warning( push )
#pragma warning( disable: 4702 )
#endif
//______________________________________________________________________________
bool
PersistentMap
::
get
(
OString
*
value
,
OString
const
&
key
)
const
{
...
...
@@ -144,9 +152,7 @@ bool PersistentMap::get( OString * value, OString const & key ) const
catch
(
DbException
&
exc
)
{
throw_rtexc
(
exc
.
get_errno
(),
exc
.
what
()
);
}
#ifndef _MSC_VER
return
false
;
// avoiding warning
#endif
}
//______________________________________________________________________________
...
...
@@ -194,9 +200,7 @@ bool PersistentMap::erase( OString const & key, bool flush_immediately )
catch
(
DbException
&
exc
)
{
throw_rtexc
(
exc
.
get_errno
(),
exc
.
what
()
);
}
#ifndef _MSC_VER
return
false
;
// avoiding warning
#endif
}
//______________________________________________________________________________
...
...
@@ -235,11 +239,13 @@ t_string2string_map PersistentMap::getEntries() const
catch
(
DbException
&
exc
)
{
throw_rtexc
(
exc
.
get_errno
(),
exc
.
what
()
);
}
#ifndef _MSC_VER
return
t_string2string_map
();
// avoiding warning
#endif
}
#ifdef _MSC_VER
#pragma warning( pop )
#endif
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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