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
f489bbfd
Kaydet (Commit)
f489bbfd
authored
Haz 23, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
silence some unique_ptr warnings
Change-Id: Ibf3a8d00e8b91be79117d9c060b4cb2a7bafe651
üst
49345008
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
optgdlg.cxx
cui/source/options/optgdlg.cxx
+14
-8
No files found.
cui/source/options/optgdlg.cxx
Dosyayı görüntüle @
f489bbfd
...
...
@@ -120,7 +120,7 @@ private:
public
:
OpenGLCfg
();
~
OpenGLCfg
()
COVERITY_NOEXCEPT_FALSE
;
~
OpenGLCfg
();
bool
useOpenGL
()
const
;
bool
forceOpenGL
()
const
;
...
...
@@ -144,16 +144,22 @@ void OpenGLCfg::reset()
mbModified
=
false
;
}
OpenGLCfg
::~
OpenGLCfg
()
COVERITY_NOEXCEPT_FALSE
OpenGLCfg
::~
OpenGLCfg
()
{
if
(
mbModified
)
{
std
::
shared_ptr
<
comphelper
::
ConfigurationChanges
>
batch
(
comphelper
::
ConfigurationChanges
::
create
());
if
(
!
officecfg
::
Office
::
Common
::
VCL
::
UseOpenGL
::
isReadOnly
())
officecfg
::
Office
::
Common
::
VCL
::
UseOpenGL
::
set
(
mbUseOpenGL
,
batch
);
if
(
!
officecfg
::
Office
::
Common
::
VCL
::
ForceOpenGL
::
isReadOnly
())
officecfg
::
Office
::
Common
::
VCL
::
ForceOpenGL
::
set
(
mbForceOpenGL
,
batch
);
batch
->
commit
();
try
{
std
::
shared_ptr
<
comphelper
::
ConfigurationChanges
>
batch
(
comphelper
::
ConfigurationChanges
::
create
());
if
(
!
officecfg
::
Office
::
Common
::
VCL
::
UseOpenGL
::
isReadOnly
())
officecfg
::
Office
::
Common
::
VCL
::
UseOpenGL
::
set
(
mbUseOpenGL
,
batch
);
if
(
!
officecfg
::
Office
::
Common
::
VCL
::
ForceOpenGL
::
isReadOnly
())
officecfg
::
Office
::
Common
::
VCL
::
ForceOpenGL
::
set
(
mbForceOpenGL
,
batch
);
batch
->
commit
();
}
catch
(...)
{
}
}
}
...
...
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