Add missing contracts to some constructors
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 9 Jul 2015 23:24:02 +0000 (01:24 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 9 Jul 2015 23:24:02 +0000 (01:24 +0200)
After adding virtual destructors to some classes, the contract scanning
tool started to complain about missing contracts in some of the
constructors that were not touched.
This change adds contracts to those.

src/vm/ilmarshalers.h

index e95756f..7b3f753 100644 (file)
@@ -1949,6 +1949,7 @@ public:
 
     ILWSTRMarshaler()
     {
+        LIMITED_METHOD_CONTRACT;
         m_fCoMemoryAllocated = false;
     }
 #endif // _DEBUG
@@ -2447,6 +2448,7 @@ public:
         m_dwCCHLocal(-1)
        ,m_dwLocalBuffer(-1)
     {
+        LIMITED_METHOD_CONTRACT;
     }
 
     virtual bool SupportsArgumentMarshal(DWORD dwMarshalFlags, UINT* pErrorResID);
@@ -2478,6 +2480,7 @@ public:
     ILVBByValStrMarshaler() :
         m_dwCCHLocal(-1)
     {
+        LIMITED_METHOD_CONTRACT;
     }
 
     virtual bool SupportsArgumentMarshal(DWORD dwMarshalFlags, UINT* pErrorResID);
@@ -2719,6 +2722,7 @@ public:
         m_dwOffsetLocalNum(-1),
         m_dwPinnedLocalNum(-1)
     {
+        LIMITED_METHOD_CONTRACT;
     }
 
 protected:
@@ -2748,6 +2752,7 @@ public:
     ILAsAnyMarshalerBase() :
         m_dwMarshalerLocalNum(-1)
     {
+        LIMITED_METHOD_CONTRACT;
     }
 
 protected:
@@ -2821,6 +2826,7 @@ public:
         m_idClearNativeContents(clearNatContents),
         m_idClearManaged(clearMan)
     {
+        LIMITED_METHOD_CONTRACT;
     }
     
 protected: