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
097d12bd
Kaydet (Commit)
097d12bd
authored
Ara 05, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1421089 seems to be really reporting missing move ctors/assignments
Change-Id: I434eebac395bbb53a0c586a43568f64ec3fb8448
üst
e6928ce4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
cellvalue.hxx
sc/inc/cellvalue.hxx
+2
-0
cellvalue.cxx
sc/source/core/data/cellvalue.cxx
+48
-0
No files found.
sc/inc/cellvalue.hxx
Dosyayı görüntüle @
097d12bd
...
@@ -44,6 +44,7 @@ struct SC_DLLPUBLIC ScCellValue
...
@@ -44,6 +44,7 @@ struct SC_DLLPUBLIC ScCellValue
ScCellValue
(
double
fValue
);
ScCellValue
(
double
fValue
);
ScCellValue
(
const
svl
::
SharedString
&
rString
);
ScCellValue
(
const
svl
::
SharedString
&
rString
);
ScCellValue
(
const
ScCellValue
&
r
);
ScCellValue
(
const
ScCellValue
&
r
);
ScCellValue
(
ScCellValue
&&
r
);
~
ScCellValue
();
~
ScCellValue
();
void
clear
();
void
clear
();
...
@@ -84,6 +85,7 @@ struct SC_DLLPUBLIC ScCellValue
...
@@ -84,6 +85,7 @@ struct SC_DLLPUBLIC ScCellValue
bool
equalsWithoutFormat
(
const
ScCellValue
&
r
)
const
;
bool
equalsWithoutFormat
(
const
ScCellValue
&
r
)
const
;
ScCellValue
&
operator
=
(
const
ScCellValue
&
r
);
ScCellValue
&
operator
=
(
const
ScCellValue
&
r
);
ScCellValue
&
operator
=
(
ScCellValue
&&
r
);
ScCellValue
&
operator
=
(
const
ScRefCellValue
&
r
);
ScCellValue
&
operator
=
(
const
ScRefCellValue
&
r
);
void
swap
(
ScCellValue
&
r
);
void
swap
(
ScCellValue
&
r
);
...
...
sc/source/core/data/cellvalue.cxx
Dosyayı görüntüle @
097d12bd
...
@@ -244,6 +244,27 @@ ScCellValue::ScCellValue( const ScCellValue& r ) : meType(r.meType), mfValue(r.m
...
@@ -244,6 +244,27 @@ ScCellValue::ScCellValue( const ScCellValue& r ) : meType(r.meType), mfValue(r.m
}
}
}
}
ScCellValue
::
ScCellValue
(
ScCellValue
&&
r
)
:
meType
(
r
.
meType
)
,
mfValue
(
r
.
mfValue
)
{
switch
(
r
.
meType
)
{
case
CELLTYPE_STRING
:
mpString
=
r
.
mpString
;
break
;
case
CELLTYPE_EDIT
:
mpEditText
=
r
.
mpEditText
;
break
;
case
CELLTYPE_FORMULA
:
mpFormula
=
r
.
mpFormula
;
break
;
default
:
;
}
r
.
meType
=
CELLTYPE_NONE
;
}
ScCellValue
::~
ScCellValue
()
ScCellValue
::~
ScCellValue
()
{
{
clear
();
clear
();
...
@@ -492,6 +513,33 @@ ScCellValue& ScCellValue::operator= ( const ScCellValue& r )
...
@@ -492,6 +513,33 @@ ScCellValue& ScCellValue::operator= ( const ScCellValue& r )
return
*
this
;
return
*
this
;
}
}
ScCellValue
&
ScCellValue
::
operator
=
(
ScCellValue
&&
rCell
)
{
clear
();
meType
=
rCell
.
meType
;
mfValue
=
rCell
.
mfValue
;
switch
(
rCell
.
meType
)
{
case
CELLTYPE_STRING
:
mpString
=
rCell
.
mpString
;
break
;
case
CELLTYPE_EDIT
:
mpEditText
=
rCell
.
mpEditText
;
break
;
case
CELLTYPE_FORMULA
:
mpFormula
=
rCell
.
mpFormula
;
break
;
default
:
;
}
//we don't need to reset mpString/mpEditText/mpFormula if we
//set meType to NONE as the ScCellValue dtor keys off the meType
rCell
.
meType
=
CELLTYPE_NONE
;
return
*
this
;
}
ScCellValue
&
ScCellValue
::
operator
=
(
const
ScRefCellValue
&
r
)
ScCellValue
&
ScCellValue
::
operator
=
(
const
ScRefCellValue
&
r
)
{
{
ScCellValue
aTmp
(
r
);
ScCellValue
aTmp
(
r
);
...
...
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