From 539aa1310c950897b1174803bdcb5c3c480f8f9b Mon Sep 17 00:00:00 2001 From: ksherlock Date: Tue, 15 Feb 2011 04:42:14 +0000 Subject: [PATCH] fix new Exception throwing. git-svn-id: https://profuse.googlecode.com/svn/branches/v2@325 aa027e90-d47c-11dd-86d7-074df07e0730 --- Device/RawDevice.cpp | 4 ++-- Pascal/VolumeEntry.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Device/RawDevice.cpp b/Device/RawDevice.cpp index 2056311..91a88b3 100644 --- a/Device/RawDevice.cpp +++ b/Device/RawDevice.cpp @@ -157,7 +157,7 @@ RawDevice::RawDevice(const char *name, File::FileFlags flags) : if (!_file.isValid()) { - throw new Exception(__METHOD__ ": Invalid file handle."); + throw Exception(__METHOD__ ": Invalid file handle."); } _readOnly = flags == File::ReadOnly; @@ -178,7 +178,7 @@ RawDevice::RawDevice(File& file, File::FileFlags flags) : if (!_file.isValid()) { - throw new Exception(__METHOD__ ": Invalid file handle."); + throw Exception(__METHOD__ ": Invalid file handle."); } _readOnly = flags == File::ReadOnly; diff --git a/Pascal/VolumeEntry.cpp b/Pascal/VolumeEntry.cpp index ec9f1aa..68f3cd3 100644 --- a/Pascal/VolumeEntry.cpp +++ b/Pascal/VolumeEntry.cpp @@ -262,7 +262,7 @@ void VolumeEntry::init(void *vp) // verify filenamelength <= 7 if (_fileNameLength > 7) - throw new ProDOSException(__METHOD__ ": invalid name length", ProFUSE::badPathSyntax); + throw ProDOSException(__METHOD__ ": invalid name length", ProFUSE::badPathSyntax); // verify fileKind == 0 // verify _fileCount reasonable