Changeset 17 for trunk/llmozlib2/llembeddedbrowser.cpp
- Timestamp:
- 08/11/08 20:37:08 (2 years ago)
- Files:
-
- trunk/llmozlib2/llembeddedbrowser.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/llmozlib2/llembeddedbrowser.cpp
r15 r17 137 137 mNativeWindowHandle = nativeWindowHandleIn; 138 138 139 NS_ConvertUTF8toUTF16 applicationDirUTF16(applicationDir.c_str()); 140 NS_ConvertUTF8toUTF16 componentDirUTF16(componentDir.c_str()); 141 NS_ConvertUTF8toUTF16 profileDirUTF16(profileDir.c_str()); 142 139 143 nsCOMPtr< nsILocalFile > applicationDirNative; 140 nsresult result = NS_New NativeLocalFile( nsCString( applicationDir.c_str() ), PR_FALSE, getter_AddRefs( applicationDirNative ) );144 nsresult result = NS_NewLocalFile( applicationDirUTF16, PR_FALSE, getter_AddRefs( applicationDirNative ) ); 141 145 if ( NS_FAILED( result ) ) 142 146 { … … 146 150 147 151 nsCOMPtr< nsILocalFile > componentDirNative; 148 result = NS_New NativeLocalFile( nsCString( componentDir.c_str() ), PR_FALSE, getter_AddRefs( componentDirNative ) );152 result = NS_NewLocalFile( componentDirUTF16 , PR_FALSE, getter_AddRefs( componentDirNative ) ); 149 153 if ( NS_FAILED( result ) ) 150 154 { … … 161 165 162 166 nsCOMPtr< nsILocalFile > profileDirNative; 163 result = NS_New NativeLocalFile( nsCString( profileDir.c_str() ), PR_TRUE, getter_AddRefs( profileDirNative ) );167 result = NS_NewLocalFile( profileDirUTF16 , PR_TRUE, getter_AddRefs( profileDirNative ) ); 164 168 if ( NS_FAILED( result ) ) 165 169 {
