dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel InvalidEnumArgu


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel InvalidEnumArgumentException.cs,1.4,1.5 WarningException.cs,1.5,1.6 Win32Exception.cs,1.7,1.8
Date: Sat, 05 Jul 2003 01:07:12 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel
In directory subversions:/tmp/cvs-serv11471/System/ComponentModel

Modified Files:
        InvalidEnumArgumentException.cs WarningException.cs 
        Win32Exception.cs 
Log Message:


Add explicit "unchecked" contexts around constants that need it.


Index: InvalidEnumArgumentException.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/InvalidEnumArgumentException.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** InvalidEnumArgumentException.cs     20 Apr 2003 02:57:19 -0000      1.4
--- InvalidEnumArgumentException.cs     5 Jul 2003 05:07:10 -0000       1.5
***************
*** 38,47 ****
                        : base(S._("Exception_InvalidEnum"))
                        {
!                               HResult = (int)0x80070057;
                        }
        public InvalidEnumArgumentException(String message)
                        : base(message)
                        {
!                               HResult = (int)0x80070057;
                        }
        public InvalidEnumArgumentException(String argumentName,
--- 38,47 ----
                        : base(S._("Exception_InvalidEnum"))
                        {
!                               HResult = unchecked((int)0x80070057);
                        }
        public InvalidEnumArgumentException(String message)
                        : base(message)
                        {
!                               HResult = unchecked((int)0x80070057);
                        }
        public InvalidEnumArgumentException(String argumentName,
***************
*** 50,54 ****
                        : base(null, argumentName)
                        {
!                               HResult = (int)0x80070057;
                                this.invalidValue = invalidValue;
                                this.enumClass = enumClass;
--- 50,54 ----
                        : base(null, argumentName)
                        {
!                               HResult = unchecked((int)0x80070057);
                                this.invalidValue = invalidValue;
                                this.enumClass = enumClass;

Index: WarningException.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/WarningException.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** WarningException.cs 29 May 2003 05:38:17 -0000      1.5
--- WarningException.cs 5 Jul 2003 05:07:10 -0000       1.6
***************
*** 37,46 ****
                        : base(message)
                        {
!                               HResult = (int)0x80131501;
                        }
        public WarningException(String message, String helpUrl)
                        : base(message)
                        {
!                               HResult = (int)0x80131501;
                                this.helpUrl = helpUrl;
                        }
--- 37,46 ----
                        : base(message)
                        {
!                               HResult = unchecked((int)0x80131501);
                        }
        public WarningException(String message, String helpUrl)
                        : base(message)
                        {
!                               HResult = unchecked((int)0x80131501);
                                this.helpUrl = helpUrl;
                        }
***************
*** 48,52 ****
                        : base(message)
                        {
!                               HResult = (int)0x80131501;
                                this.helpUrl = helpUrl;
                                this.helpTopic = helpTopic;
--- 48,52 ----
                        : base(message)
                        {
!                               HResult = unchecked((int)0x80131501);
                                this.helpUrl = helpUrl;
                                this.helpTopic = helpTopic;

Index: Win32Exception.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/Win32Exception.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** Win32Exception.cs   26 May 2003 04:41:20 -0000      1.7
--- Win32Exception.cs   5 Jul 2003 05:07:10 -0000       1.8
***************
*** 33,56 ****
                public Win32Exception() : base()
                {
!                       HResult = (int)0x80004005;
                }
                public Win32Exception(int error) : base()
                {
                        nativeErrorCode = error;
!                       HResult = (int)0x80004005;
                }
                public Win32Exception(int error, String message) : base(message)
                {
                        nativeErrorCode = error;
!                       HResult = (int)0x80004005;
                }
                internal Win32Exception(String message) : base (message)
                {
!                       HResult = (int)0x80004005;
                }
                internal Win32Exception(String message,Exception inner) 
                        : base (message,inner)
                {
!                       HResult = (int)0x80004005;
                }
  #if CONFIG_SERIALIZATION
--- 33,56 ----
                public Win32Exception() : base()
                {
!                       HResult = unchecked((int)0x80004005);
                }
                public Win32Exception(int error) : base()
                {
                        nativeErrorCode = error;
!                       HResult = unchecked((int)0x80004005);
                }
                public Win32Exception(int error, String message) : base(message)
                {
                        nativeErrorCode = error;
!                       HResult = unchecked((int)0x80004005);
                }
                internal Win32Exception(String message) : base (message)
                {
!                       HResult = unchecked((int)0x80004005);
                }
                internal Win32Exception(String message,Exception inner) 
                        : base (message,inner)
                {
!                       HResult = unchecked((int)0x80004005);
                }
  #if CONFIG_SERIALIZATION





reply via email to

[Prev in Thread] Current Thread [Next in Thread]