From 0fe35d60b4f574feaf8a827c53be67696ca5770b Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Wed, 5 May 1999 05:45:01 +0000 Subject: [PATCH] initial work to move over ParseLine from 4.x world --- mailnews/news/src/nsNNTPNewsgroupList.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mailnews/news/src/nsNNTPNewsgroupList.cpp b/mailnews/news/src/nsNNTPNewsgroupList.cpp index bddcf47577c1..7ca313592e49 100644 --- a/mailnews/news/src/nsNNTPNewsgroupList.cpp +++ b/mailnews/news/src/nsNNTPNewsgroupList.cpp @@ -547,6 +547,14 @@ nsNNTPNewsgroupList::InitXOVER(PRInt32 first_msg, PRInt32 last_msg) #define NEWS_ART_DISPLAY_FREQ 10 +#if 0 +nsresult +nsNNTPNewsgroupList::ParseLine(const char *line, PRUint32 * message_number) { + *message_number = 500; + return NS_OK; +} +#endif + nsresult nsNNTPNewsgroupList::ProcessXOVERLINE(const char *line, PRUint32 *status) { @@ -554,11 +562,18 @@ nsNNTPNewsgroupList::ProcessXOVERLINE(const char *line, PRUint32 *status) PRUint32 message_number=0; // PRInt32 lines; PRBool read_p = PR_FALSE; + nsresult rv = NS_OK; PR_ASSERT (line); if (!line) return NS_ERROR_NULL_POINTER; - +#if 0 + rv = ParseLine(line, &message_number); + if (NS_FAILED(rv)) { + return rv; + } +#endif + #ifdef HAVE_DBVIEW if (m_msgDBView != NULL) {