Kaydet (Commit) 0e7804b8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

configmgr: Use appropriate OUString functions on string constants

Change-Id: I7345234957aab62e884c0e884ac0b3b8a21e9cc5
üst b4a73f9d
...@@ -127,7 +127,7 @@ sal_Int32 Data::parseSegment( ...@@ -127,7 +127,7 @@ sal_Int32 Data::parseSegment(
} }
if (templateName != 0) { if (templateName != 0) {
if (i - index == 1 && path[index] == '*') { if (i - index == 1 && path[index] == '*') {
*templateName = ""; templateName->clear();
} else { } else {
*templateName = path.copy(index, i - index); *templateName = path.copy(index, i - index);
} }
...@@ -245,7 +245,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation( ...@@ -245,7 +245,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation(
return p; return p;
} }
parent = p; parent = p;
templateName = ""; templateName.clear();
n = parseSegment( n = parseSegment(
pathRepresentation, n, &seg, &setElement, &templateName); pathRepresentation, n, &seg, &setElement, &templateName);
if (n == -1) { if (n == -1) {
......
...@@ -56,7 +56,7 @@ css::uno::Any PropertyNode::getValue(Components & components) { ...@@ -56,7 +56,7 @@ css::uno::Any PropertyNode::getValue(Components & components) {
if (val.IsPresent) { if (val.IsPresent) {
value_ = val.Value; //TODO: check value type value_ = val.Value; //TODO: check value type
} }
externalDescriptor_ = ""; // must not throw externalDescriptor_.clear(); // must not throw
} }
SAL_WARN_IF( SAL_WARN_IF(
!(value_.hasValue() || nillable_), "configmgr", !(value_.hasValue() || nillable_), "configmgr",
...@@ -67,13 +67,13 @@ css::uno::Any PropertyNode::getValue(Components & components) { ...@@ -67,13 +67,13 @@ css::uno::Any PropertyNode::getValue(Components & components) {
void PropertyNode::setValue(int layer, css::uno::Any const & value) { void PropertyNode::setValue(int layer, css::uno::Any const & value) {
setLayer(layer); setLayer(layer);
value_ = value; value_ = value;
externalDescriptor_ = ""; externalDescriptor_.clear();
} }
com::sun::star::uno::Any *PropertyNode::getValuePtr(int layer) com::sun::star::uno::Any *PropertyNode::getValuePtr(int layer)
{ {
setLayer(layer); setLayer(layer);
externalDescriptor_ = ""; externalDescriptor_.clear();
return &value_; return &value_;
} }
......
...@@ -113,7 +113,7 @@ bool XcdParser::startElement( ...@@ -113,7 +113,7 @@ bool XcdParser::startElement(
return false; return false;
} }
state_ = STATE_DEPENDENCY; state_ = STATE_DEPENDENCY;
dependencyFile_ = ""; dependencyFile_.clear();
return true; return true;
} }
state_ = STATE_COMPONENTS; state_ = STATE_COMPONENTS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment