summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-25 12:36:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-25 12:38:36 +0200
commit995296ea1d48636363a3a80068ceeb002b8bedb8 (patch)
tree75283f4eb707186eaf2a98a98a1a986e4242b8b5 /framework
parentdb081acb013666a84f0ae30c3c3132835d2638db (diff)
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I63f1b54cc9ef49a83800b671a60ea25df7fc2121
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/queries.h38
-rw-r--r--framework/source/accelerators/storageholder.cxx4
2 files changed, 21 insertions, 21 deletions
diff --git a/framework/inc/queries.h b/framework/inc/queries.h
index 6311bc64a7e6..8e0abff00de1 100644
--- a/framework/inc/queries.h
+++ b/framework/inc/queries.h
@@ -33,16 +33,16 @@ namespace framework{
They are used by our FilterFactory or our TypeDetection to return
subsets of our cached configuration.
*//*-*************************************************************************************************************/
-#define BASE_QUERY_ALL DECLARE_ASCII("_query_all" )
-#define BASE_QUERY_WRITER DECLARE_ASCII("_query_Writer" )
-#define BASE_QUERY_WEB DECLARE_ASCII("_query_web" )
-#define BASE_QUERY_GLOBAL DECLARE_ASCII("_query_global" )
-#define BASE_QUERY_CHART DECLARE_ASCII("_query_chart" )
-#define BASE_QUERY_CALC DECLARE_ASCII("_query_calc" )
-#define BASE_QUERY_IMPRESS DECLARE_ASCII("_query_impress" )
-#define BASE_QUERY_DRAW DECLARE_ASCII("_query_draw" )
-#define BASE_QUERY_MATH DECLARE_ASCII("_query_math" )
-#define BASE_QUERY_GRAPHICS DECLARE_ASCII("_query_graphics")
+#define BASE_QUERY_ALL "_query_all"
+#define BASE_QUERY_WRITER "_query_Writer"
+#define BASE_QUERY_WEB "_query_web"
+#define BASE_QUERY_GLOBAL "_query_global"
+#define BASE_QUERY_CHART "_query_chart"
+#define BASE_QUERY_CALC "_query_calc"
+#define BASE_QUERY_IMPRESS "_query_impress"
+#define BASE_QUERY_DRAW "_query_draw"
+#define BASE_QUERY_MATH "_query_math"
+#define BASE_QUERY_GRAPHICS "_query_graphics"
/*-************************************************************************************************************
@short These parameters can be used in combination with BASE_QUERY_... defines to
@@ -63,17 +63,17 @@ namespace framework{
#define SEPARATOR_QUERYPARAM ((sal_Unicode)':')
#define SEPARATOR_QUERYPARAMVALUE ((sal_Unicode)'=')
-#define QUERYPARAM_IFLAGS DECLARE_ASCII("iflags" )
-#define QUERYPARAM_EFLAGS DECLARE_ASCII("eflags" )
-#define QUERYPARAM_SORT_PROP DECLARE_ASCII("sort_prop" )
+#define QUERYPARAM_IFLAGS "iflags"
+#define QUERYPARAM_EFLAGS "eflags"
+#define QUERYPARAM_SORT_PROP "sort_prop"
-#define QUERYPARAM_DESCENDING DECLARE_ASCII("descending" )
-#define QUERYPARAM_USE_ORDER DECLARE_ASCII("use_order" )
-#define QUERYPARAM_DEFAULT_FIRST DECLARE_ASCII("default_first" )
-#define QUERYPARAM_CASE_SENSITIVE DECLARE_ASCII("case_sensitive" )
+#define QUERYPARAM_DESCENDING "descending"
+#define QUERYPARAM_USE_ORDER "use_order"
+#define QUERYPARAM_DEFAULT_FIRST "default_first"
+#define QUERYPARAM_CASE_SENSITIVE "case_sensitive"
-#define QUERYPARAMVALUE_SORT_PROP_NAME DECLARE_ASCII("name" )
-#define QUERYPARAMVALUE_SORT_PROP_UINAME DECLARE_ASCII("uiname" )
+#define QUERYPARAMVALUE_SORT_PROP_NAME "name"
+#define QUERYPARAMVALUE_SORT_PROP_UINAME "uiname"
/*-************************************************************************************************************
@short Helper class to support easy building of a query statements.
diff --git a/framework/source/accelerators/storageholder.cxx b/framework/source/accelerators/storageholder.cxx
index 2dc27318d222..e22d9e68b67f 100644
--- a/framework/source/accelerators/storageholder.cxx
+++ b/framework/source/accelerators/storageholder.cxx
@@ -494,7 +494,7 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
OUString sNormedPath = sPath;
// "/bla" => "bla" && "/" => "" (!)
- if (sNormedPath.startsWith(PATH_SEPARATOR))
+ if (sNormedPath.startsWith(PATH_SEPARATOR_ASCII))
sNormedPath += sNormedPath.copy(1);
// "/" => "" || "" => "" ?
@@ -502,7 +502,7 @@ OUString StorageHolder::impl_st_normPath(const OUString& sPath)
return OUString();
// "bla" => "bla/"
- if (sNormedPath.lastIndexOf(PATH_SEPARATOR) != (sNormedPath.getLength()-1))
+ if (sNormedPath.lastIndexOf(PATH_SEPARATOR_UNICODE) != (sNormedPath.getLength()-1))
sNormedPath += PATH_SEPARATOR;
return sNormedPath;