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
bc80f951
Kaydet (Commit)
bc80f951
authored
Ock 11, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:unusedmethods unused return value in basic
Change-Id: I0ccbf994d2c9be35f43fc3c62e60da90634bacdf
üst
1b26a4eb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
30 deletions
+14
-30
sbunoobj.cxx
basic/source/classes/sbunoobj.cxx
+2
-2
buffer.cxx
basic/source/comp/buffer.cxx
+5
-20
buffer.hxx
basic/source/inc/buffer.hxx
+4
-4
sbunoobj.hxx
basic/source/inc/sbunoobj.hxx
+1
-1
sbxdec.cxx
basic/source/sbx/sbxdec.cxx
+1
-2
sbxdec.hxx
basic/source/sbx/sbxdec.hxx
+1
-1
No files found.
basic/source/classes/sbunoobj.cxx
Dosyayı görüntüle @
bc80f951
...
@@ -4754,9 +4754,9 @@ Any StructRefInfo::getValue()
...
@@ -4754,9 +4754,9 @@ Any StructRefInfo::getValue()
return
aRet
;
return
aRet
;
}
}
bool
StructRefInfo
::
setValue
(
const
Any
&
rValue
)
void
StructRefInfo
::
setValue
(
const
Any
&
rValue
)
{
{
return
uno_type_assignData
(
getInst
(),
uno_type_assignData
(
getInst
(),
maType
.
getTypeLibType
(),
maType
.
getTypeLibType
(),
const_cast
<
void
*>
(
rValue
.
getValue
()),
const_cast
<
void
*>
(
rValue
.
getValue
()),
rValue
.
getValueTypeRef
(),
rValue
.
getValueTypeRef
(),
...
...
basic/source/comp/buffer.cxx
Dosyayı görüntüle @
bc80f951
...
@@ -151,17 +151,12 @@ void SbiBuffer::Chain( sal_uInt32 off )
...
@@ -151,17 +151,12 @@ void SbiBuffer::Chain( sal_uInt32 off )
}
}
}
}
bool
SbiBuffer
::
operator
+=
(
sal_Int8
n
)
void
SbiBuffer
::
operator
+=
(
sal_Int8
n
)
{
{
if
(
Check
(
1
)
)
if
(
Check
(
1
)
)
{
{
*
pCur
++
=
(
char
)
n
;
*
pCur
++
=
(
char
)
n
;
nOff
+=
1
;
nOff
+=
1
;
return
true
;
}
else
{
return
false
;
}
}
}
}
...
@@ -179,18 +174,13 @@ bool SbiBuffer::operator +=( sal_uInt8 n )
...
@@ -179,18 +174,13 @@ bool SbiBuffer::operator +=( sal_uInt8 n )
}
}
}
}
bool
SbiBuffer
::
operator
+=
(
sal_Int16
n
)
void
SbiBuffer
::
operator
+=
(
sal_Int16
n
)
{
{
if
(
Check
(
2
)
)
if
(
Check
(
2
)
)
{
{
*
pCur
++
=
(
char
)
(
n
&
0xFF
);
*
pCur
++
=
(
char
)
(
n
&
0xFF
);
*
pCur
++
=
(
char
)
(
n
>>
8
);
*
pCur
++
=
(
char
)
(
n
>>
8
);
nOff
+=
2
;
nOff
+=
2
;
return
true
;
}
else
{
return
false
;
}
}
}
}
...
@@ -224,13 +214,13 @@ bool SbiBuffer::operator +=( sal_uInt32 n )
...
@@ -224,13 +214,13 @@ bool SbiBuffer::operator +=( sal_uInt32 n )
}
}
}
}
bool
SbiBuffer
::
operator
+=
(
sal_Int32
n
)
void
SbiBuffer
::
operator
+=
(
sal_Int32
n
)
{
{
return
operator
+=
(
(
sal_uInt32
)
n
);
operator
+=
(
(
sal_uInt32
)
n
);
}
}
bool
SbiBuffer
::
operator
+=
(
const
OUString
&
n
)
void
SbiBuffer
::
operator
+=
(
const
OUString
&
n
)
{
{
sal_uInt32
len
=
n
.
getLength
()
+
1
;
sal_uInt32
len
=
n
.
getLength
()
+
1
;
if
(
Check
(
len
)
)
if
(
Check
(
len
)
)
...
@@ -239,11 +229,6 @@ bool SbiBuffer::operator +=( const OUString& n )
...
@@ -239,11 +229,6 @@ bool SbiBuffer::operator +=( const OUString& n )
memcpy
(
pCur
,
aByteStr
.
getStr
(),
len
);
memcpy
(
pCur
,
aByteStr
.
getStr
(),
len
);
pCur
+=
len
;
pCur
+=
len
;
nOff
+=
len
;
nOff
+=
len
;
return
true
;
}
else
{
return
false
;
}
}
}
}
...
...
basic/source/inc/buffer.hxx
Dosyayı görüntüle @
bc80f951
...
@@ -37,13 +37,13 @@ public:
...
@@ -37,13 +37,13 @@ public:
~
SbiBuffer
();
~
SbiBuffer
();
void
Patch
(
sal_uInt32
,
sal_uInt32
);
void
Patch
(
sal_uInt32
,
sal_uInt32
);
void
Chain
(
sal_uInt32
);
void
Chain
(
sal_uInt32
);
bool
operator
+=
(
const
OUString
&
);
// save basic-string
void
operator
+=
(
const
OUString
&
);
// save basic-string
bool
operator
+=
(
sal_Int8
);
// save character
void
operator
+=
(
sal_Int8
);
// save character
bool
operator
+=
(
sal_Int16
);
// save integer
void
operator
+=
(
sal_Int16
);
// save integer
bool
operator
+=
(
sal_uInt8
);
// save character
bool
operator
+=
(
sal_uInt8
);
// save character
bool
operator
+=
(
sal_uInt16
);
// save integer
bool
operator
+=
(
sal_uInt16
);
// save integer
bool
operator
+=
(
sal_uInt32
);
// save integer
bool
operator
+=
(
sal_uInt32
);
// save integer
bool
operator
+=
(
sal_Int32
);
// save integer
void
operator
+=
(
sal_Int32
);
// save integer
char
*
GetBuffer
();
// give out buffer (delete yourself!)
char
*
GetBuffer
();
// give out buffer (delete yourself!)
sal_uInt32
GetSize
()
{
return
nOff
;
}
sal_uInt32
GetSize
()
{
return
nOff
;
}
};
};
...
...
basic/source/inc/sbunoobj.hxx
Dosyayı görüntüle @
bc80f951
...
@@ -59,7 +59,7 @@ public:
...
@@ -59,7 +59,7 @@ public:
bool
isEmpty
()
{
return
(
mnPos
==
-
1
);
}
bool
isEmpty
()
{
return
(
mnPos
==
-
1
);
}
css
::
uno
::
Any
getValue
();
css
::
uno
::
Any
getValue
();
bool
setValue
(
const
css
::
uno
::
Any
&
);
void
setValue
(
const
css
::
uno
::
Any
&
);
};
};
class
SbUnoStructRefObject
:
public
SbxObject
class
SbUnoStructRefObject
:
public
SbxObject
...
...
basic/source/sbx/sbxdec.cxx
Dosyayı görüntüle @
bc80f951
...
@@ -349,7 +349,7 @@ bool SbxDecimal::getDouble( double& rVal ) { (void)rVal; return false; }
...
@@ -349,7 +349,7 @@ bool SbxDecimal::getDouble( double& rVal ) { (void)rVal; return false; }
#endif
#endif
bool
SbxDecimal
::
getString
(
OUString
&
rString
)
void
SbxDecimal
::
getString
(
OUString
&
rString
)
{
{
#ifdef WIN32
#ifdef WIN32
static
LCID
nLANGID
=
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
);
static
LCID
nLANGID
=
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
);
...
@@ -390,7 +390,6 @@ bool SbxDecimal::getString( OUString& rString )
...
@@ -390,7 +390,6 @@ bool SbxDecimal::getString( OUString& rString )
return
bRet
;
return
bRet
;
#else
#else
(
void
)
rString
;
(
void
)
rString
;
return
false
;
#endif
#endif
}
}
...
...
basic/source/sbx/sbxdec.hxx
Dosyayı görüntüle @
bc80f951
...
@@ -90,7 +90,7 @@ public:
...
@@ -90,7 +90,7 @@ public:
bool
getULong
(
sal_uInt32
&
rVal
);
bool
getULong
(
sal_uInt32
&
rVal
);
bool
getSingle
(
float
&
rVal
);
bool
getSingle
(
float
&
rVal
);
bool
getDouble
(
double
&
rVal
);
bool
getDouble
(
double
&
rVal
);
bool
getString
(
OUString
&
rString
);
void
getString
(
OUString
&
rString
);
bool
operator
-=
(
const
SbxDecimal
&
r
);
bool
operator
-=
(
const
SbxDecimal
&
r
);
bool
operator
+=
(
const
SbxDecimal
&
r
);
bool
operator
+=
(
const
SbxDecimal
&
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