327372 - fix atlantia orange, avoid using static ctor/dtors. r=mark@moxienet.com

This commit is contained in:
beng%bengoodger.com 2006-02-15 23:13:49 +00:00
Родитель 37883a6e26
Коммит 6768cc62bb
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -468,19 +468,19 @@ protected:
nsresult BindStatementURI(mozIStorageStatement* statement, PRInt32 index,
nsIURI* aURI);
NS_NAMED_LITERAL_CSTRING(placesURIPrefix, "place:");
#define PLACES_URI_PREFIX "place:"
/* Returns true if the given URI represents a history query. */
inline PRBool IsQueryURI(const nsCString &uri)
{
return StringBeginsWith(uri, placesURIPrefix);
return StringBeginsWith(uri, NS_LITERAL_CSTRING(PLACES_URI_PREFIX));
}
/* Extracts the query string from a query URI. */
inline const nsDependentCSubstring QueryURIToQuery(const nsCString &uri)
{
NS_ASSERTION(IsQueryURI(uri), "should only be called for query URIs");
return Substring(uri, placesURIPrefix.Length());
return Substring(uri, NS_LITERAL_CSTRING(PLACES_URI_PREFIX).Length());
}
#endif // nsNavHistory_h_