From 0e7804b8978e106d08d026fd959714a8094b2403 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 16 Dec 2014 17:27:07 +0100 Subject: configmgr: Use appropriate OUString functions on string constants Change-Id: I7345234957aab62e884c0e884ac0b3b8a21e9cc5 --- configmgr/source/data.cxx | 4 ++-- configmgr/source/propertynode.cxx | 6 +++--- configmgr/source/xcdparser.cxx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'configmgr/source') diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index 23839409ed68..e322b10e07f8 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -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) { diff --git a/configmgr/source/propertynode.cxx b/configmgr/source/propertynode.cxx index acc35773fda7..967a1057b238 100644 --- a/configmgr/source/propertynode.cxx +++ b/configmgr/source/propertynode.cxx @@ -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_; } diff --git a/configmgr/source/xcdparser.cxx b/configmgr/source/xcdparser.cxx index 6a9c3f0fec06..11502e347f2d 100644 --- a/configmgr/source/xcdparser.cxx +++ b/configmgr/source/xcdparser.cxx @@ -113,7 +113,7 @@ bool XcdParser::startElement( return false; } state_ = STATE_DEPENDENCY; - dependencyFile_ = ""; + dependencyFile_.clear(); return true; } state_ = STATE_COMPONENTS; -- cgit