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
30e72a9a
Kaydet (Commit)
30e72a9a
authored
Eyl 29, 2013
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck: some cleanings
Change-Id: Ie41b33c09d79b40116cc10f7557987860acb55e8
üst
26bb3a08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
dlg_DataEditor.cxx
chart2/source/controller/dialogs/dlg_DataEditor.cxx
+1
-2
ThreeDHelper.cxx
chart2/source/tools/ThreeDHelper.cxx
+2
-4
MtaOleClipb.cxx
dtrans/source/win32/clipb/MtaOleClipb.cxx
+1
-2
No files found.
chart2/source/controller/dialogs/dlg_DataEditor.cxx
Dosyayı görüntüle @
30e72a9a
...
...
@@ -93,8 +93,7 @@ DataEditor::DataEditor(
sal_Int32
nMaxWidth
=
GetDesktopRectPixel
().
getWidth
()
-
(
aWinSizeWithBorder
.
getWidth
()
-
aWinSize
.
getWidth
()
+
aWinPos
.
getX
())
-
10
;
// leave some space
sal_Int32
nBrowserWidth
=
m_apBrwData
->
GetTotalWidth
()
+
12
+
16
;
// plus padding + 16?
sal_Int32
nWindowWidth
=
::
std
::
max
(
nMinWidth
,
nBrowserWidth
);
nWindowWidth
=
::
std
::
min
(
nMaxWidth
,
nBrowserWidth
);
sal_Int32
nWindowWidth
=
::
std
::
min
(
nMaxWidth
,
nBrowserWidth
);
aWinSize
.
setWidth
(
nWindowWidth
);
SetOutputSizePixel
(
aWinSize
);
AdaptBrowseBoxSize
();
...
...
chart2/source/tools/ThreeDHelper.cxx
Dosyayı görüntüle @
30e72a9a
...
...
@@ -1157,7 +1157,6 @@ void ThreeDHelper::setCameraDistance(
double
ThreeDHelper
::
CameraDistanceToPerspective
(
double
fCameraDistance
)
{
double
fRet
=
fCameraDistance
;
double
fMin
,
fMax
;
ThreeDHelper
::
getCameraDistanceRange
(
fMin
,
fMax
);
//fMax <-> 0; fMin <->100
...
...
@@ -1165,14 +1164,13 @@ double ThreeDHelper::CameraDistanceToPerspective( double fCameraDistance )
double
a
=
100.0
*
fMax
*
fMin
/
(
fMax
-
fMin
);
double
b
=
-
a
/
fMax
;
fRet
=
a
/
fCameraDistance
+
b
;
double
fRet
=
a
/
fCameraDistance
+
b
;
return
fRet
;
}
double
ThreeDHelper
::
PerspectiveToCameraDistance
(
double
fPerspective
)
{
double
fRet
=
fPerspective
;
double
fMin
,
fMax
;
ThreeDHelper
::
getCameraDistanceRange
(
fMin
,
fMax
);
//fMax <-> 0; fMin <->100
...
...
@@ -1180,7 +1178,7 @@ double ThreeDHelper::PerspectiveToCameraDistance( double fPerspective )
double
a
=
100.0
*
fMax
*
fMin
/
(
fMax
-
fMin
);
double
b
=
-
a
/
fMax
;
fRet
=
a
/
(
fPerspective
-
b
);
double
fRet
=
a
/
(
fPerspective
-
b
);
return
fRet
;
}
...
...
dtrans/source/win32/clipb/MtaOleClipb.cxx
Dosyayı görüntüle @
30e72a9a
...
...
@@ -399,7 +399,6 @@ HRESULT CMtaOleClipboard::getClipboard( IDataObject** ppIDataObject )
CAutoComInit
comAutoInit
;
LPSTREAM
lpStream
;
HRESULT
hr
=
E_FAIL
;
*
ppIDataObject
=
NULL
;
...
...
@@ -411,7 +410,7 @@ HRESULT CMtaOleClipboard::getClipboard( IDataObject** ppIDataObject )
aMsgCtx
.
aCondition
.
wait
(
/* infinite */
);
hr
=
aMsgCtx
.
hr
;
HRESULT
hr
=
aMsgCtx
.
hr
;
if
(
SUCCEEDED
(
hr
)
)
{
...
...
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