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
dc21a49e
Kaydet (Commit)
dc21a49e
authored
Şub 16, 2017
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SbxDecimal::CmpResult to scoped enum
Change-Id: Id2d887c3ce4316a223497ef6790ca326983c4817
üst
4ea27cf6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
sbxdec.cxx
basic/source/sbx/sbxdec.cxx
+1
-1
sbxdec.hxx
basic/source/sbx/sbxdec.hxx
+2
-1
sbxvalue.cxx
basic/source/sbx/sbxvalue.cxx
+6
-6
No files found.
basic/source/sbx/sbxdec.cxx
Dosyayı görüntüle @
dc21a49e
...
@@ -324,7 +324,7 @@ SbxDecimal::CmpResult compare( const SbxDecimal &rLeft, const SbxDecimal &rRight
...
@@ -324,7 +324,7 @@ SbxDecimal::CmpResult compare( const SbxDecimal &rLeft, const SbxDecimal &rRight
{
{
(
void
)
rLeft
;
(
void
)
rLeft
;
(
void
)
rRight
;
(
void
)
rRight
;
return
(
SbxDecimal
::
CmpResult
)
0
;
return
SbxDecimal
::
CmpResult
::
LT
;
}
}
void
SbxDecimal
::
setChar
(
sal_Unicode
val
)
{
(
void
)
val
;
}
void
SbxDecimal
::
setChar
(
sal_Unicode
val
)
{
(
void
)
val
;
}
...
...
basic/source/sbx/sbxdec.hxx
Dosyayı görüntüle @
dc21a49e
...
@@ -95,7 +95,8 @@ public:
...
@@ -95,7 +95,8 @@ public:
bool
isZero
();
bool
isZero
();
enum
CmpResult
{
LT
,
EQ
,
GT
};
// must match the return values of the Microsoft VarDecCmp Automation function
enum
class
CmpResult
{
LT
,
EQ
,
GT
};
friend
CmpResult
compare
(
const
SbxDecimal
&
rLeft
,
const
SbxDecimal
&
rRight
);
friend
CmpResult
compare
(
const
SbxDecimal
&
rLeft
,
const
SbxDecimal
&
rRight
);
};
};
...
...
basic/source/sbx/sbxvalue.cxx
Dosyayı görüntüle @
dc21a49e
...
@@ -1293,17 +1293,17 @@ bool SbxValue::Compare( SbxOperator eOp, const SbxValue& rOp ) const
...
@@ -1293,17 +1293,17 @@ bool SbxValue::Compare( SbxOperator eOp, const SbxValue& rOp ) const
switch
(
eOp
)
switch
(
eOp
)
{
{
case
SbxEQ
:
case
SbxEQ
:
bRes
=
(
eRes
==
SbxDecimal
::
EQ
);
break
;
bRes
=
(
eRes
==
SbxDecimal
::
CmpResult
::
EQ
);
break
;
case
SbxNE
:
case
SbxNE
:
bRes
=
(
eRes
!=
SbxDecimal
::
EQ
);
break
;
bRes
=
(
eRes
!=
SbxDecimal
::
CmpResult
::
EQ
);
break
;
case
SbxLT
:
case
SbxLT
:
bRes
=
(
eRes
==
SbxDecimal
::
LT
);
break
;
bRes
=
(
eRes
==
SbxDecimal
::
CmpResult
::
LT
);
break
;
case
SbxGT
:
case
SbxGT
:
bRes
=
(
eRes
==
SbxDecimal
::
GT
);
break
;
bRes
=
(
eRes
==
SbxDecimal
::
CmpResult
::
GT
);
break
;
case
SbxLE
:
case
SbxLE
:
bRes
=
(
eRes
!=
SbxDecimal
::
GT
);
break
;
bRes
=
(
eRes
!=
SbxDecimal
::
CmpResult
::
GT
);
break
;
case
SbxGE
:
case
SbxGE
:
bRes
=
(
eRes
!=
SbxDecimal
::
LT
);
break
;
bRes
=
(
eRes
!=
SbxDecimal
::
CmpResult
::
LT
);
break
;
default
:
default
:
SetError
(
ERRCODE_SBX_NOTIMP
);
SetError
(
ERRCODE_SBX_NOTIMP
);
}
}
...
...
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