Browse Source

pyxpcom: VariantUtils: don't mark strings-to-delete as const objects

Mark Yen 12 years ago
parent
commit
3895414240
1 changed files with 2 additions and 2 deletions
  1. 2 2
      xpcom/src/VariantUtils.cpp

+ 2 - 2
xpcom/src/VariantUtils.cpp

@@ -2296,12 +2296,12 @@ void PyXPCOM_InterfaceVariantHelper::CleanupParam(void* p, nsXPTType& type)
 			break;
         case TD_ASTRING:
         case TD_DOMSTRING:
-			delete reinterpret_cast<const nsString*>(p);
+			delete reinterpret_cast<nsString*>(p);
 			MarkFree(p);
 			break;
         case TD_CSTRING:
         case TD_UTF8STRING:
-			delete reinterpret_cast<const nsCString*>(p);
+			delete reinterpret_cast<nsCString*>(p);
 			MarkFree(p);
 			break;
         case TD_PNSIID: