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
f19e32b1
Kaydet (Commit)
f19e32b1
authored
Ock 14, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:unusedmethods unused return value in rsc
Change-Id: I6301aed80083c21e26851817220de6e135eb4da7
üst
802765db
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
32 additions
and
52 deletions
+32
-52
rscclobj.hxx
rsc/inc/rscclobj.hxx
+2
-2
rscconst.hxx
rsc/inc/rscconst.hxx
+1
-1
rscdb.hxx
rsc/inc/rscdb.hxx
+3
-5
rscdef.hxx
rsc/inc/rscdef.hxx
+2
-2
rsckey.hxx
rsc/inc/rsckey.hxx
+1
-1
rscrange.hxx
rsc/inc/rscrange.hxx
+3
-4
rscdb.cxx
rsc/source/parser/rscdb.cxx
+3
-4
rscibas.cxx
rsc/source/parser/rscibas.cxx
+1
-2
rsckey.cxx
rsc/source/parser/rsckey.cxx
+2
-2
rscconst.cxx
rsc/source/res/rscconst.cxx
+1
-3
rscrange.cxx
rsc/source/res/rscrange.cxx
+2
-6
rscdef.cxx
rsc/source/tools/rscdef.cxx
+4
-9
timer.cxx
salhelper/source/timer.cxx
+7
-11
No files found.
rsc/inc/rscclobj.hxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -70,9 +70,9 @@ public:
ObjNode
*
pObjBiTree
;
// Zeiger auf Objektbaum
RefNode
(
Atom
nTyp
);
sal_uInt32
GetId
()
const
override
;
bool
Insert
(
RefNode
*
pTN
)
//< insert a new node in the b-tree
void
Insert
(
RefNode
*
pTN
)
//< insert a new node in the b-tree
{
return
IdNode
::
Insert
(
static_cast
<
IdNode
*>
(
pTN
)
);
IdNode
::
Insert
(
static_cast
<
IdNode
*>
(
pTN
)
);
}
bool
PutObjNode
(
ObjNode
*
pPutObject
);
...
...
rsc/inc/rscconst.hxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -39,7 +39,7 @@ public:
virtual
~
RscConst
();
virtual
RSCCLASS_TYPE
GetClassType
()
const
override
;
// sets the allowed values
ERRTYPE
SetConstant
(
Atom
nVarName
,
sal_Int32
lValue
);
void
SetConstant
(
Atom
nVarName
,
sal_Int32
lValue
);
bool
GetConstValue
(
Atom
nConstId
,
sal_Int32
*
pVal
)
const
;
bool
GetValueConst
(
sal_Int32
nValue
,
Atom
*
pConstId
)
const
;
sal_uInt32
GetConstPos
(
Atom
nConstId
);
...
...
rsc/inc/rscdb.hxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -151,7 +151,7 @@ class RscTypCont
inline
void
SETCONST
(
RscConst
*
p1
,
const
char
*
p2
,
ToolBoxItemType
p3
)
{
SETCONST
(
p1
,
p2
,
static_cast
<
sal_uInt32
>
(
p3
));
}
inline
void
SETCONST
(
RscConst
*
p1
,
const
char
*
p2
,
ButtonType
p3
)
{
SETCONST
(
p1
,
p2
,
static_cast
<
sal_uInt32
>
(
p3
));
}
inline
void
SETCONST
(
RscConst
*
p1
,
const
char
*
p2
,
WindowAlign
p3
)
{
SETCONST
(
p1
,
p2
,
static_cast
<
sal_uInt32
>
(
p3
));
}
RscEnum
*
InitLangType
();
void
InitLangType
();
RscEnum
*
InitFieldUnitsType
();
RscEnum
*
InitColor
();
RscEnum
*
InitMapUnit
();
...
...
@@ -263,11 +263,9 @@ public:
RSCBYTEORDER_TYPE
GetByteOrder
()
const
{
return
nByteOrder
;
}
rtl_TextEncoding
GetSourceCharSet
()
const
{
return
nSourceCharSet
;
}
rtl_TextEncoding
SetSourceCharSet
(
rtl_TextEncoding
aCharSet
)
void
SetSourceCharSet
(
rtl_TextEncoding
aCharSet
)
{
rtl_TextEncoding
aOld
=
nSourceCharSet
;
nSourceCharSet
=
aCharSet
;
return
aOld
;
}
OString
GetSearchPath
()
const
{
return
aSearchPath
;
}
void
SetSysSearchPath
(
const
OString
&
rStr
)
{
aSysSearchPath
=
rStr
;
}
...
...
@@ -285,7 +283,7 @@ public:
ERRTYPE
WriteRc
(
WriteRcContext
&
rContext
);
void
WriteSrc
(
FILE
*
fOutput
,
sal_uLong
nFileIndex
,
bool
bName
=
true
);
sal_uInt32
PutTranslatorKey
(
sal_uInt64
nKey
);
void
PutTranslatorKey
(
sal_uInt64
nKey
);
void
IncFilePos
(
sal_uLong
nOffset
){
nFilePos
+=
nOffset
;
}
};
...
...
rsc/inc/rscdef.hxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -143,7 +143,7 @@ protected:
public
:
RscDefine
*
Search
(
const
char
*
);
sal_uLong
GetFileKey
()
const
{
return
lFileKey
;
}
bool
Evaluate
();
void
Evaluate
();
sal_Int32
GetNumber
()
const
{
return
lId
;
}
OString
GetMacro
();
};
...
...
@@ -215,7 +215,7 @@ public:
RscFile
();
~
RscFile
();
bool
InsertDependFile
(
sal_uLong
lDepFile
,
size_t
lPos
);
void
InsertDependFile
(
sal_uLong
lDepFile
,
size_t
lPos
);
bool
Depend
(
sal_uLong
lDepend
,
sal_uLong
lFree
);
void
SetIncFlag
(){
bIncFile
=
true
;
};
bool
IsIncFile
(){
return
bIncFile
;
};
...
...
rsc/inc/rsckey.hxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -43,7 +43,7 @@ public:
Atom
Put
(
Atom
nName
,
sal_uInt32
nTyp
,
sal_IntPtr
nValue
);
Atom
Put
(
const
char
*
pName
,
sal_uInt32
nTyp
,
sal_IntPtr
nValue
);
Atom
Put
(
const
char
*
pName
,
sal_uInt32
nTyp
);
Atom
Put
(
Atom
nName
,
sal_uInt32
nTyp
,
RscTop
*
pClass
);
void
Put
(
Atom
nName
,
sal_uInt32
nTyp
,
RscTop
*
pClass
);
// if true, it was found
bool
Get
(
Atom
nName
,
KEY_STRUCT
*
pEle
);
...
...
rsc/inc/rscrange.hxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -40,7 +40,7 @@ public:
virtual
RSCCLASS_TYPE
GetClassType
()
const
override
;
RSCINST
Create
(
RSCINST
*
pInst
,
const
RSCINST
&
rDfltInst
,
bool
)
override
;
// sets the allowed range
ERRTYPE
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
);
void
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
);
// returns the class size in bytes
sal_uInt32
Size
()
override
{
return
nSize
;
}
// an assignment to a variable
...
...
@@ -78,7 +78,7 @@ public:
virtual
RSCCLASS_TYPE
GetClassType
()
const
override
;
RSCINST
Create
(
RSCINST
*
pInst
,
const
RSCINST
&
rDfltInst
,
bool
)
override
;
// sets the allowed range
ERRTYPE
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
);
void
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
);
// returns the class size in bytes
sal_uInt32
Size
()
override
{
return
nSize
;
}
// an assignment to a variable
...
...
@@ -120,11 +120,10 @@ public:
RscIdRange
(
Atom
nId
,
sal_uInt32
nTypId
);
virtual
RSCCLASS_TYPE
GetClassType
()
const
override
;
// sets the allowed range
ERRTYPE
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
)
void
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
)
{
nMin
=
nMinimum
;
nMax
=
nMaximum
;
return
ERR_OK
;
}
RSCINST
Create
(
RSCINST
*
pInst
,
const
RSCINST
&
rDfltInst
,
bool
)
override
;
void
Destroy
(
const
RSCINST
&
rInst
)
override
;
...
...
rsc/source/parser/rscdb.cxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -352,12 +352,11 @@ private:
DECL_LINK_TYPED
(
CallBackWriteRc
,
const
NameNode
&
,
void
);
DECL_LINK_TYPED
(
CallBackWriteSrc
,
const
NameNode
&
,
void
);
ERRTYPE
WriteRc
(
RscTop
*
pCl
,
ObjNode
*
pRoot
)
void
WriteRc
(
RscTop
*
pCl
,
ObjNode
*
pRoot
)
{
pClass
=
pCl
;
if
(
pRoot
)
pRoot
->
EnumNodes
(
LINK
(
this
,
RscEnumerateObj
,
CallBackWriteRc
)
);
return
aError
;
}
ERRTYPE
WriteSrc
(
RscTop
*
pCl
,
ObjNode
*
pRoot
){
pClass
=
pCl
;
...
...
@@ -639,10 +638,10 @@ bool MakeConsistent( RscTop * pRscTop )
return
bRet
;
}
sal_uInt32
RscTypCont
::
PutTranslatorKey
(
sal_uInt64
nKey
)
void
RscTypCont
::
PutTranslatorKey
(
sal_uInt64
nKey
)
{
aIdTranslator
[
nKey
]
=
nFilePos
;
return
nPMId
++
;
nPMId
++
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
rsc/source/parser/rscibas.cxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -165,10 +165,9 @@ Atom RscLangEnum::AddLanguage( const char* pLang, RscNameTable& rNames )
return
nResult
;
}
RscEnum
*
RscTypCont
::
InitLangType
()
void
RscTypCont
::
InitLangType
()
{
aLangType
.
Init
(
aNmTb
);
return
&
aLangType
;
}
RscEnum
*
RscTypCont
::
InitFieldUnitsType
()
...
...
rsc/source/parser/rsckey.cxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -103,9 +103,9 @@ Atom RscNameTable::Put( const char * pName, sal_uInt32 nTyp )
return
Put
(
nId
,
nTyp
,
(
sal_IntPtr
)
nId
);
};
Atom
RscNameTable
::
Put
(
Atom
nName
,
sal_uInt32
nTyp
,
RscTop
*
pClass
)
void
RscNameTable
::
Put
(
Atom
nName
,
sal_uInt32
nTyp
,
RscTop
*
pClass
)
{
return
Put
(
nName
,
nTyp
,
reinterpret_cast
<
sal_IntPtr
>
(
pClass
)
);
Put
(
nName
,
nTyp
,
reinterpret_cast
<
sal_IntPtr
>
(
pClass
)
);
};
bool
RscNameTable
::
Get
(
Atom
nName
,
KEY_STRUCT
*
pEle
)
...
...
rsc/source/res/rscconst.cxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -44,7 +44,7 @@ RSCCLASS_TYPE RscConst::GetClassType() const
return
RSCCLASS_CONST
;
}
ERRTYPE
RscConst
::
SetConstant
(
Atom
nVarName
,
sal_Int32
lValue
)
void
RscConst
::
SetConstant
(
Atom
nVarName
,
sal_Int32
lValue
)
{
if
(
pVarArray
)
pVarArray
=
static_cast
<
VarEle
*>
(
rtl_reallocateMemory
(
static_cast
<
void
*>
(
pVarArray
),
...
...
@@ -54,8 +54,6 @@ ERRTYPE RscConst::SetConstant( Atom nVarName, sal_Int32 lValue )
pVarArray
[
nEntries
].
nId
=
nVarName
;
pVarArray
[
nEntries
].
lValue
=
lValue
;
nEntries
++
;
return
ERR_OK
;
}
bool
RscConst
::
GetConstValue
(
Atom
nConst
,
sal_Int32
*
pValue
)
const
...
...
rsc/source/res/rscrange.cxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -36,7 +36,7 @@ RSCCLASS_TYPE RscRange::GetClassType() const
return
RSCCLASS_NUMBER
;
}
ERRTYPE
RscRange
::
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
)
void
RscRange
::
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
)
{
if
(
nMinimum
>
nMaximum
)
{
...
...
@@ -48,8 +48,6 @@ ERRTYPE RscRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum )
nMax
=
nMaximum
;
nMin
=
nMinimum
;
}
return
ERR_OK
;
}
bool
RscRange
::
IsValueDefault
(
const
RSCINST
&
rInst
,
CLASS_DATA
pDef
)
...
...
@@ -150,7 +148,7 @@ RSCCLASS_TYPE RscLongRange::GetClassType() const
return
RSCCLASS_NUMBER
;
}
ERRTYPE
RscLongRange
::
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
)
void
RscLongRange
::
SetRange
(
sal_Int32
nMinimum
,
sal_Int32
nMaximum
)
{
if
(
nMinimum
>
nMaximum
)
{
...
...
@@ -162,8 +160,6 @@ ERRTYPE RscLongRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum )
nMax
=
nMaximum
;
nMin
=
nMinimum
;
}
return
ERR_OK
;
}
bool
RscLongRange
::
IsValueDefault
(
const
RSCINST
&
rInst
,
CLASS_DATA
pDef
)
...
...
rsc/source/tools/rscdef.cxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -160,14 +160,10 @@ void RscDefine::DefineToNumber()
SetName
(
OString
::
number
(
lId
));
}
bool
RscDefine
::
Evaluate
()
void
RscDefine
::
Evaluate
()
{
bool
bRet
=
true
;
if
(
pExp
)
bRet
=
!
pExp
->
Evaluate
(
&
lId
);
return
bRet
;
pExp
->
Evaluate
(
&
lId
);
}
RscDefine
*
RscDefine
::
Search
(
const
char
*
pStr
)
...
...
@@ -408,13 +404,13 @@ bool RscFile::Depend( sal_uLong lDepend, sal_uLong lFree )
return
true
;
}
bool
RscFile
::
InsertDependFile
(
sal_uLong
lIncFile
,
size_t
lPos
)
void
RscFile
::
InsertDependFile
(
sal_uLong
lIncFile
,
size_t
lPos
)
{
for
(
size_t
i
=
0
,
n
=
aDepLst
.
size
();
i
<
n
;
++
i
)
{
RscDepend
*
pDep
=
aDepLst
[
i
];
if
(
pDep
->
GetFileKey
()
==
lIncFile
)
return
true
;
return
;
}
// current pointer points to last element
...
...
@@ -429,7 +425,6 @@ bool RscFile::InsertDependFile( sal_uLong lIncFile, size_t lPos )
::
std
::
advance
(
it
,
lPos
);
aDepLst
.
insert
(
it
,
new
RscDepend
(
lIncFile
)
);
}
return
true
;
}
RscDefTree
::~
RscDefTree
()
...
...
salhelper/source/timer.cxx
Dosyayı görüntüle @
f19e32b1
...
...
@@ -39,10 +39,10 @@ public:
virtual
~
TimerManager
();
/// register timer
bool
SAL_CALL
registerTimer
(
salhelper
::
Timer
*
pTimer
);
void
SAL_CALL
registerTimer
(
salhelper
::
Timer
*
pTimer
);
/// unregister timer
bool
SAL_CALL
unregisterTimer
(
salhelper
::
Timer
*
pTimer
);
void
SAL_CALL
unregisterTimer
(
salhelper
::
Timer
*
pTimer
);
/// lookup timer
bool
SAL_CALL
lookupTimer
(
const
salhelper
::
Timer
*
pTimer
);
...
...
@@ -283,13 +283,13 @@ TimerManager* TimerManager::getTimerManager()
return
m_pManager
;
}
bool
TimerManager
::
registerTimer
(
Timer
*
pTimer
)
void
TimerManager
::
registerTimer
(
Timer
*
pTimer
)
{
OSL_ASSERT
(
pTimer
);
if
(
pTimer
==
nullptr
)
{
return
false
;
return
;
}
osl
::
MutexGuard
Guard
(
m_Lock
);
...
...
@@ -320,17 +320,15 @@ bool TimerManager::registerTimer(Timer* pTimer)
// signal it to TimerManager Thread
m_notEmpty
.
set
();
}
return
true
;
}
bool
TimerManager
::
unregisterTimer
(
Timer
*
pTimer
)
void
TimerManager
::
unregisterTimer
(
Timer
*
pTimer
)
{
OSL_ASSERT
(
pTimer
);
if
(
pTimer
==
nullptr
)
{
return
false
;
return
;
}
// lock access
...
...
@@ -344,12 +342,10 @@ bool TimerManager::unregisterTimer(Timer* pTimer)
{
// remove timer from list
*
ppIter
=
(
*
ppIter
)
->
m_pNext
;
return
true
;
return
;
}
ppIter
=
&
((
*
ppIter
)
->
m_pNext
);
}
return
false
;
}
bool
TimerManager
::
lookupTimer
(
const
Timer
*
pTimer
)
...
...
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