diff options
Diffstat (limited to 'linden/indra/newview/llurlsimstring.h')
-rw-r--r-- | linden/indra/newview/llurlsimstring.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/linden/indra/newview/llurlsimstring.h b/linden/indra/newview/llurlsimstring.h index 420030f..a1c3bfc 100644 --- a/linden/indra/newview/llurlsimstring.h +++ b/linden/indra/newview/llurlsimstring.h | |||
@@ -39,7 +39,7 @@ class LLURLSimString | |||
39 | public: | 39 | public: |
40 | enum { NOT_SET=0, NOT_PARSED=1, PARSE_OK=2, PARSE_FAIL=-1 }; | 40 | enum { NOT_SET=0, NOT_PARSED=1, PARSE_OK=2, PARSE_FAIL=-1 }; |
41 | 41 | ||
42 | static void setString(const LLString& url); | 42 | static void setString(const std::string& url); |
43 | // Accepts all sorts of fragments: | 43 | // Accepts all sorts of fragments: |
44 | // secondlife://RegionName/1/2/ | 44 | // secondlife://RegionName/1/2/ |
45 | // sl://RegionName/1/2/3/ | 45 | // sl://RegionName/1/2/3/ |
@@ -51,7 +51,7 @@ public: | |||
51 | // (and it parsed correctly, which is basically always because | 51 | // (and it parsed correctly, which is basically always because |
52 | // any bare region string is a valid fragment). | 52 | // any bare region string is a valid fragment). |
53 | 53 | ||
54 | static bool parse(const LLString& sim_string, std::string *region_name, S32 *x, S32 *y, S32 *z); | 54 | static bool parse(const std::string& sim_string, std::string *region_name, S32 *x, S32 *y, S32 *z); |
55 | // Parse a sim string "Ahern/1/2" and return location data, | 55 | // Parse a sim string "Ahern/1/2" and return location data, |
56 | // doesn't affect static instance. | 56 | // doesn't affect static instance. |
57 | 57 | ||
@@ -64,16 +64,18 @@ public: | |||
64 | LLURLSimString() : mX(128), mY(128), mZ(0), mParseState(NOT_PARSED) {} | 64 | LLURLSimString() : mX(128), mY(128), mZ(0), mParseState(NOT_PARSED) {} |
65 | 65 | ||
66 | private: | 66 | private: |
67 | static S32 parseGridIdx(const LLString& in_string, S32 idx0, S32* res); | 67 | static std::string::size_type parseGridIdx(const std::string& in_string, |
68 | std::string::size_type idx0, | ||
69 | std::string::size_type* res); | ||
68 | 70 | ||
69 | public: | 71 | public: |
70 | static LLURLSimString sInstance; | 72 | static LLURLSimString sInstance; |
71 | static LLString sLocationStringHome; | 73 | static std::string sLocationStringHome; |
72 | static LLString sLocationStringLast; | 74 | static std::string sLocationStringLast; |
73 | 75 | ||
74 | public: | 76 | public: |
75 | LLString mSimString; // "name/x/y/z" | 77 | std::string mSimString; // "name/x/y/z" |
76 | LLString mSimName; | 78 | std::string mSimName; |
77 | S32 mX,mY,mZ; | 79 | S32 mX,mY,mZ; |
78 | S32 mParseState; | 80 | S32 mParseState; |
79 | }; | 81 | }; |