[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Compilation warning/error in kdenetwork
From: Michael Goffioul <goffioul () imec ! be>
Date: 2002-12-17 9:11:34
[Download RAW message or body]
> > kdenetwork/kmail/mboxjob.cpp: line 96
> > kdenetwork/kmail/maildirjob.cpp: line 37
> >
> This is HEAD, so just fix the error. Most developers using gcc 3.x these
> days, so they don't notice. 2.95.3 is still supported though
The attached patch fixes the error/warning. Is it OK to commit?
Michael
--
------------------------------------------------------------------
Michael Goffioul IMEC-DESICS-MIRA
e-mail: goffioul@imec.be (Mixed-Signal and RF Applications)
Tel: +32/16/28-8510 Kapeldreef, 75
Fax: +32/16/28-1515 3001 HEVERLEE, BELGIUM
------------------------------------------------------------------
This e-mail and/or its attachments may contain confidential
information. It is intended solely for the intended addressee(s).
Any use of the information contained herein by other persons is
prohibited. IMEC vzw does not accept any liability for the contents
of this e-mail and/or its attachments.
------------------------------------------------------------------
["kmail.diff" (text/plain)]
Index: mboxjob.cpp
===================================================================
RCS file: /home/kde/kdenetwork/kmail/mboxjob.cpp,v
retrieving revision 1.3
diff -u -3 -p -r1.3 mboxjob.cpp
--- mboxjob.cpp 11 Dec 2002 18:06:43 -0000 1.3
+++ mboxjob.cpp 17 Dec 2002 09:10:57 -0000
@@ -93,7 +93,7 @@ MboxJob::expireMessages()
void
MboxJob::setParent( const KMFolderMbox *parent )
{
- mParent = parent;
+ mParent = const_cast<KMFolderMbox*>( parent );
}
//-----------------------------------------------------------------------------
Index: maildirjob.cpp
===================================================================
RCS file: /home/kde/kdenetwork/kmail/maildirjob.cpp,v
retrieving revision 1.3
diff -u -3 -p -r1.3 maildirjob.cpp
--- maildirjob.cpp 11 Dec 2002 18:06:43 -0000 1.3
+++ maildirjob.cpp 17 Dec 2002 09:10:57 -0000
@@ -34,7 +34,7 @@ MaildirJob::~MaildirJob()
//-----------------------------------------------------------------------------
void MaildirJob::setParentFolder( const KMFolderMaildir* parent )
{
- mParentFolder = parent;
+ mParentFolder = const_cast<KMFolderMaildir*>( parent );
}
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic