Kaydet (Commit) c1c115cc authored tarafından Kohei Yoshida's avatar Kohei Yoshida

String -> rtl::OUString.

üst 27372c66
...@@ -980,18 +980,18 @@ rtl::OUString lclEncodeDosUrl( ...@@ -980,18 +980,18 @@ rtl::OUString lclEncodeDosUrl(
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
String XclExpUrlHelper::EncodeUrl( const XclExpRoot& rRoot, const String& rAbsUrl, const rtl::OUString* pTableName ) rtl::OUString XclExpUrlHelper::EncodeUrl( const XclExpRoot& rRoot, const rtl::OUString& rAbsUrl, const rtl::OUString* pTableName )
{ {
rtl::OUString aDosUrl = INetURLObject(rAbsUrl).getFSysPath(INetURLObject::FSYS_DOS); rtl::OUString aDosUrl = INetURLObject(rAbsUrl).getFSysPath(INetURLObject::FSYS_DOS);
rtl::OUString aDosBase = INetURLObject(rRoot.GetBasePath()).getFSysPath(INetURLObject::FSYS_DOS); rtl::OUString aDosBase = INetURLObject(rRoot.GetBasePath()).getFSysPath(INetURLObject::FSYS_DOS);
return lclEncodeDosUrl(rRoot.GetBiff(), aDosUrl, aDosBase, pTableName); return lclEncodeDosUrl(rRoot.GetBiff(), aDosUrl, aDosBase, pTableName);
} }
String XclExpUrlHelper::EncodeDde( const String& rApplic, const String rTopic ) rtl::OUString XclExpUrlHelper::EncodeDde( const rtl::OUString& rApplic, const rtl::OUString& rTopic )
{ {
String aDde( rApplic ); rtl::OUStringBuffer aBuf;
aDde.Append( EXC_DDE_DELIM ).Append( rTopic ); aBuf.append(rApplic).append(EXC_DDE_DELIM).append(rTopic);
return aDde; return aBuf.makeStringAndClear();
} }
// Cached Value Lists ========================================================= // Cached Value Lists =========================================================
......
...@@ -412,9 +412,9 @@ class XclExpUrlHelper : boost::noncopyable ...@@ -412,9 +412,9 @@ class XclExpUrlHelper : boost::noncopyable
public: public:
/** Encodes and returns the URL passed in rAbsUrl to an Excel like URL. /** Encodes and returns the URL passed in rAbsUrl to an Excel like URL.
@param pTableName Optional pointer to a table name to be encoded in this URL. */ @param pTableName Optional pointer to a table name to be encoded in this URL. */
static String EncodeUrl( const XclExpRoot& rRoot, const String& rAbsUrl, const rtl::OUString* pTableName = 0 ); static rtl::OUString EncodeUrl( const XclExpRoot& rRoot, const rtl::OUString& rAbsUrl, const rtl::OUString* pTableName = 0 );
/** Encodes and returns the passed DDE link to an Excel like DDE link. */ /** Encodes and returns the passed DDE link to an Excel like DDE link. */
static String EncodeDde( const String& rApplic, const String rTopic ); static rtl::OUString EncodeDde( const rtl::OUString& rApplic, const rtl::OUString& rTopic );
private: private:
/** We don't want anybody to instantiate this class, since it is just a /** We don't want anybody to instantiate this class, since it is just a
......
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