From 6768cc62bb0f2c70ef19ef5f6a53135917399b28 Mon Sep 17 00:00:00 2001 From: "beng%bengoodger.com" Date: Wed, 15 Feb 2006 23:13:49 +0000 Subject: [PATCH] 327372 - fix atlantia orange, avoid using static ctor/dtors. r=mark@moxienet.com --- browser/components/places/src/nsNavHistory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/components/places/src/nsNavHistory.h b/browser/components/places/src/nsNavHistory.h index 5e2f90ffc514..823d19ec06d0 100644 --- a/browser/components/places/src/nsNavHistory.h +++ b/browser/components/places/src/nsNavHistory.h @@ -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_