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(
}
if (templateName != 0) {
if (i - index == 1 && path[index] == '*') {
*templateName = "";
templateName->clear();
} else {
*templateName = path.copy(index, i - index);
}
......@@ -245,7 +245,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation(
return p;
}
parent = p;
templateName = "";
templateName.clear();
n = parseSegment(
pathRepresentation, n, &seg, &setElement, &templateName);
if (n == -1) {
......
......@@ -56,7 +56,7 @@ css::uno::Any PropertyNode::getValue(Components & components) {
if (val.IsPresent) {
value_ = val.Value; //TODO: check value type
}
externalDescriptor_ = ""; // must not throw
externalDescriptor_.clear(); // must not throw
}
SAL_WARN_IF(
!(value_.hasValue() || nillable_), "configmgr",
......@@ -67,13 +67,13 @@ css::uno::Any PropertyNode::getValue(Components & components) {
void PropertyNode::setValue(int layer, css::uno::Any const & value) {
setLayer(layer);
value_ = value;
externalDescriptor_ = "";
externalDescriptor_.clear();
}
com::sun::star::uno::Any *PropertyNode::getValuePtr(int layer)
{
setLayer(layer);
externalDescriptor_ = "";
externalDescriptor_.clear();
return &value_;
}
......
......@@ -113,7 +113,7 @@ bool XcdParser::startElement(
return false;
}
state_ = STATE_DEPENDENCY;
dependencyFile_ = "";
dependencyFile_.clear();
return true;
}
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