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
995296ea
Kaydet (Commit)
995296ea
authored
Haz 25, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I63f1b54cc9ef49a83800b671a60ea25df7fc2121
üst
db081acb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
queries.h
framework/inc/queries.h
+19
-19
storageholder.cxx
framework/source/accelerators/storageholder.cxx
+2
-2
No files found.
framework/inc/queries.h
Dosyayı görüntüle @
995296ea
...
@@ -33,16 +33,16 @@ namespace framework{
...
@@ -33,16 +33,16 @@ namespace framework{
They are used by our FilterFactory or our TypeDetection to return
They are used by our FilterFactory or our TypeDetection to return
subsets of our cached configuration.
subsets of our cached configuration.
*//*-*************************************************************************************************************/
*//*-*************************************************************************************************************/
#define BASE_QUERY_ALL
DECLARE_ASCII("_query_all" )
#define BASE_QUERY_ALL
"_query_all"
#define BASE_QUERY_WRITER
DECLARE_ASCII("_query_Writer" )
#define BASE_QUERY_WRITER
"_query_Writer"
#define BASE_QUERY_WEB
DECLARE_ASCII("_query_web" )
#define BASE_QUERY_WEB
"_query_web"
#define BASE_QUERY_GLOBAL
DECLARE_ASCII("_query_global" )
#define BASE_QUERY_GLOBAL
"_query_global"
#define BASE_QUERY_CHART
DECLARE_ASCII("_query_chart" )
#define BASE_QUERY_CHART
"_query_chart"
#define BASE_QUERY_CALC
DECLARE_ASCII("_query_calc" )
#define BASE_QUERY_CALC
"_query_calc"
#define BASE_QUERY_IMPRESS
DECLARE_ASCII("_query_impress" )
#define BASE_QUERY_IMPRESS
"_query_impress"
#define BASE_QUERY_DRAW
DECLARE_ASCII("_query_draw" )
#define BASE_QUERY_DRAW
"_query_draw"
#define BASE_QUERY_MATH
DECLARE_ASCII("_query_math" )
#define BASE_QUERY_MATH
"_query_math"
#define BASE_QUERY_GRAPHICS
DECLARE_ASCII("_query_graphics")
#define BASE_QUERY_GRAPHICS
"_query_graphics"
/*-************************************************************************************************************
/*-************************************************************************************************************
@short These parameters can be used in combination with BASE_QUERY_... defines to
@short These parameters can be used in combination with BASE_QUERY_... defines to
...
@@ -63,17 +63,17 @@ namespace framework{
...
@@ -63,17 +63,17 @@ namespace framework{
#define SEPARATOR_QUERYPARAM ((sal_Unicode)':')
#define SEPARATOR_QUERYPARAM ((sal_Unicode)':')
#define SEPARATOR_QUERYPARAMVALUE ((sal_Unicode)'=')
#define SEPARATOR_QUERYPARAMVALUE ((sal_Unicode)'=')
#define QUERYPARAM_IFLAGS
DECLARE_ASCII("iflags" )
#define QUERYPARAM_IFLAGS
"iflags"
#define QUERYPARAM_EFLAGS
DECLARE_ASCII("eflags" )
#define QUERYPARAM_EFLAGS
"eflags"
#define QUERYPARAM_SORT_PROP
DECLARE_ASCII("sort_prop" )
#define QUERYPARAM_SORT_PROP
"sort_prop"
#define QUERYPARAM_DESCENDING
DECLARE_ASCII("descending" )
#define QUERYPARAM_DESCENDING
"descending"
#define QUERYPARAM_USE_ORDER
DECLARE_ASCII("use_order" )
#define QUERYPARAM_USE_ORDER
"use_order"
#define QUERYPARAM_DEFAULT_FIRST
DECLARE_ASCII("default_first" )
#define QUERYPARAM_DEFAULT_FIRST
"default_first"
#define QUERYPARAM_CASE_SENSITIVE
DECLARE_ASCII("case_sensitive" )
#define QUERYPARAM_CASE_SENSITIVE
"case_sensitive"
#define QUERYPARAMVALUE_SORT_PROP_NAME
DECLARE_ASCII("name" )
#define QUERYPARAMVALUE_SORT_PROP_NAME
"name"
#define QUERYPARAMVALUE_SORT_PROP_UINAME
DECLARE_ASCII("uiname" )
#define QUERYPARAMVALUE_SORT_PROP_UINAME
"uiname"
/*-************************************************************************************************************
/*-************************************************************************************************************
@short Helper class to support easy building of a query statements.
@short Helper class to support easy building of a query statements.
...
...
framework/source/accelerators/storageholder.cxx
Dosyayı görüntüle @
995296ea
...
@@ -494,7 +494,7 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
...
@@ -494,7 +494,7 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
OUString
sNormedPath
=
sPath
;
OUString
sNormedPath
=
sPath
;
// "/bla" => "bla" && "/" => "" (!)
// "/bla" => "bla" && "/" => "" (!)
if
(
sNormedPath
.
startsWith
(
PATH_SEPARATOR
))
if
(
sNormedPath
.
startsWith
(
PATH_SEPARATOR
_ASCII
))
sNormedPath
+=
sNormedPath
.
copy
(
1
);
sNormedPath
+=
sNormedPath
.
copy
(
1
);
// "/" => "" || "" => "" ?
// "/" => "" || "" => "" ?
...
@@ -502,7 +502,7 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
...
@@ -502,7 +502,7 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
return
OUString
();
return
OUString
();
// "bla" => "bla/"
// "bla" => "bla/"
if
(
sNormedPath
.
lastIndexOf
(
PATH_SEPARATOR
)
!=
(
sNormedPath
.
getLength
()
-
1
))
if
(
sNormedPath
.
lastIndexOf
(
PATH_SEPARATOR
_UNICODE
)
!=
(
sNormedPath
.
getLength
()
-
1
))
sNormedPath
+=
PATH_SEPARATOR
;
sNormedPath
+=
PATH_SEPARATOR
;
return
sNormedPath
;
return
sNormedPath
;
...
...
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