~ubuntu-branches/ubuntu/natty/enigmail/natty-security

« back to all changes in this revision

Viewing changes to extensions/enigmail/src/nsEnigMimeListener.cpp

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-08-20 17:18:02 UTC
  • mfrom: (0.13.4)
  • Revision ID: package-import@ubuntu.com-20120820171802-wy0l2jvokcfrdwc1
Tags: 2:1.4.4-0ubuntu0.11.04.1
* New upstream release v1.4.4 to support Thunderbird 15
  - LP: #1042165

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    mContentLength(-1),
95
95
 
96
96
    mDecodeContent(PR_FALSE),
97
 
    mDecoderData(nsnull),
 
97
    mDecoderData(NULL),
98
98
 
99
99
    mLinebreak(""),
100
100
    mHeaders(""),
107
107
    mMaxHeaderBytes(0),
108
108
    mDataOffset(0),
109
109
 
110
 
    mStreamBuf(nsnull),
 
110
    mStreamBuf(NULL),
111
111
    mStreamOffset(0),
112
112
    mStreamLength(0),
113
113
    mSubPartTreatment(PR_FALSE),
114
114
 
115
 
    mListener(nsnull),
116
 
    mContext(nsnull)
 
115
    mListener(NULL),
 
116
    mContext(NULL)
117
117
{
118
118
    NS_INIT_ISUPPORTS();
119
119
 
120
120
#ifdef PR_LOGGING
121
 
  if (gEnigMimeListenerLog == nsnull) {
 
121
  if (gEnigMimeListenerLog == NULL) {
122
122
    gEnigMimeListenerLog = PR_NewLogModule("nsEnigMimeListener");
123
123
  }
124
124
#endif
146
146
  if (mDecoderData) {
147
147
    // Clear decoder buffer
148
148
    MimeDecoderDestroy(mDecoderData, PR_FALSE);
149
 
    mDecoderData = nsnull;
 
149
    mDecoderData = NULL;
150
150
  }
151
151
 
152
152
  // Release owning refs
153
 
  mListener = nsnull;
154
 
  mContext = nsnull;
 
153
  mListener = NULL;
 
154
  mContext = NULL;
155
155
}
156
156
 
157
157
 
222
222
 
223
223
  nsEnigMimeListener* enigMimeListener = (nsEnigMimeListener *) closure;
224
224
 
225
 
  return enigMimeListener->SendStream(buf, size, nsnull, nsnull);
 
225
  return enigMimeListener->SendStream(buf, size, NULL, NULL);
226
226
}
227
227
 
228
228
 
399
399
  if (mDecoderData) {
400
400
    // Clear decoder buffer
401
401
    MimeDecoderDestroy(mDecoderData, PR_FALSE);
402
 
    mDecoderData = nsnull;
 
402
    mDecoderData = NULL;
403
403
  }
404
404
 
405
405
  if (mListener) {
411
411
  }
412
412
 
413
413
  // Release owning refs
414
 
  mListener = nsnull;
415
 
  mContext = nsnull;
 
414
  mListener = NULL;
 
415
  mContext = NULL;
416
416
 
417
417
  return (aStatus == NS_BINDING_ABORTED) ? NS_ERROR_FAILURE : NS_OK;
418
418
}
877
877
///////////////////////////////////////////////////////////////////////////////
878
878
 
879
879
NS_IMETHODIMP
 
880
#if MOZILLA_MAJOR_VERSION < 17
880
881
nsEnigMimeListener::Available(PRUint32* _retval)
 
882
#else
 
883
nsEnigMimeListener::Available(PRUint64* _retval)
 
884
#endif
881
885
{
882
886
  if (!_retval)
883
887
    return NS_ERROR_NULL_POINTER;
980
984
nsEnigMimeListener::Close()
981
985
{
982
986
  DEBUG_LOG(("nsEnigMimeListener::Close: (%p)\n", this));
983
 
  mStreamBuf = nsnull;
 
987
  mStreamBuf = NULL;
984
988
  mStreamOffset = 0;
985
989
  mStreamLength = 0;
986
990
  return NS_OK;