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
ac265f62
Kaydet (Commit)
ac265f62
authored
Haz 29, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Further clean-up
Change-Id: I16b8bfe2c4a337acf188ec8ffa2ed084ca437faa
üst
5d88bf76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
passstuffbyref.cxx
compilerplugins/clang/passstuffbyref.cxx
+9
-3
computedexpression.hxx
forms/source/xforms/computedexpression.hxx
+1
-1
No files found.
compilerplugins/clang/passstuffbyref.cxx
Dosyayı görüntüle @
ac265f62
...
@@ -243,13 +243,19 @@ void PassStuffByRef::checkReturnValue(const FunctionDecl * functionDecl, const C
...
@@ -243,13 +243,19 @@ void PassStuffByRef::checkReturnValue(const FunctionDecl * functionDecl, const C
return
;
return
;
}
}
loplugin
::
DeclCheck
dc
(
functionDecl
);
loplugin
::
DeclCheck
dc
(
functionDecl
);
std
::
string
aFunctionName
=
functionDecl
->
getQualifiedNameAsString
();
// function is passed as parameter to another function
// function is passed as parameter to another function
if
(
dc
.
Function
(
"ImplColMonoFnc"
).
Class
(
"GDIMetaFile"
).
GlobalNamespace
()
if
(
dc
.
Function
(
"ImplColMonoFnc"
).
Class
(
"GDIMetaFile"
).
GlobalNamespace
()
||
(
dc
.
Function
(
"darkColor"
).
Class
(
"SvxBorderLine"
).
Namespace
(
"editeng"
)
||
(
dc
.
Function
(
"darkColor"
).
Class
(
"SvxBorderLine"
).
Namespace
(
"editeng"
)
.
GlobalNamespace
())
.
GlobalNamespace
())
||
aFunctionName
.
compare
(
0
,
8
,
"xforms::"
)
==
0
)
||
(
dc
.
MemberFunction
().
Class
(
"Binding"
).
Namespace
(
"xforms"
)
.
GlobalNamespace
())
||
(
dc
.
MemberFunction
().
Class
(
"Model"
).
Namespace
(
"xforms"
)
.
GlobalNamespace
())
||
(
dc
.
MemberFunction
().
Class
(
"Submission"
).
Namespace
(
"xforms"
)
.
GlobalNamespace
()))
{
return
;
return
;
}
// not sure how to exclude this yet, returns copy of one of it's params
// not sure how to exclude this yet, returns copy of one of it's params
if
(
dc
.
Function
(
"sameDistColor"
).
GlobalNamespace
()
if
(
dc
.
Function
(
"sameDistColor"
).
GlobalNamespace
()
||
dc
.
Function
(
"sameColor"
).
GlobalNamespace
()
||
dc
.
Function
(
"sameColor"
).
GlobalNamespace
()
...
@@ -278,7 +284,7 @@ void PassStuffByRef::checkReturnValue(const FunctionDecl * functionDecl, const C
...
@@ -278,7 +284,7 @@ void PassStuffByRef::checkReturnValue(const FunctionDecl * functionDecl, const C
DiagnosticsEngine
::
Warning
,
DiagnosticsEngine
::
Warning
,
"rather return %0 from function %1 %2 by const& than by value, to avoid unnecessary copying"
,
"rather return %0 from function %1 %2 by const& than by value, to avoid unnecessary copying"
,
functionDecl
->
getSourceRange
().
getBegin
())
functionDecl
->
getSourceRange
().
getBegin
())
<<
type
.
getAsString
()
<<
aFunctionName
<<
type
->
getTypeClassName
()
<<
functionDecl
->
getSourceRange
();
<<
type
.
getAsString
()
<<
functionDecl
->
getQualifiedNameAsString
()
<<
type
->
getTypeClassName
()
<<
functionDecl
->
getSourceRange
();
// display the location of the class member declaration so I don't have to search for it by hand
// display the location of the class member declaration so I don't have to search for it by hand
if
(
functionDecl
->
getSourceRange
().
getBegin
()
!=
functionDecl
->
getCanonicalDecl
()
->
getSourceRange
().
getBegin
())
if
(
functionDecl
->
getSourceRange
().
getBegin
()
!=
functionDecl
->
getCanonicalDecl
()
->
getSourceRange
().
getBegin
())
...
...
forms/source/xforms/computedexpression.hxx
Dosyayı görüntüle @
ac265f62
...
@@ -111,7 +111,7 @@ public:
...
@@ -111,7 +111,7 @@ public:
// get the result of this expression as string/bool/...
// get the result of this expression as string/bool/...
// (Results will be based on the last call of evaluate(..). The caller
// (Results will be based on the last call of evaluate(..). The caller
// must call evaluate to ensure current results.)
// must call evaluate to ensure current results.)
css
::
uno
::
Reference
<
css
::
xml
::
xpath
::
XXPathObject
>
getXPath
()
const
{
return
mxResult
;}
css
::
uno
::
Reference
<
css
::
xml
::
xpath
::
XXPathObject
>
const
&
getXPath
()
const
{
return
mxResult
;}
bool
getBool
(
bool
bDefault
=
false
)
const
;
bool
getBool
(
bool
bDefault
=
false
)
const
;
OUString
getString
()
const
;
OUString
getString
()
const
;
...
...
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