Skip to content

Commit 3877d3d

Browse files
committed
update to 0.5.0
1 parent 33a7e9e commit 3877d3d

File tree

17 files changed

+110
-125
lines changed

17 files changed

+110
-125
lines changed
0 Bytes
Binary file not shown.
-16 Bytes
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ExportFile Xtra 0.4.9
1+
# ExportFile Xtra 0.5.0
22
## By Anthony Kleine
33

44
ExportFile Xtra exports the content of Director cast members out to files. It can export all built-in cast member types, as well as Xtra Media.

source/Asset.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ std::string& Asset::trimEllipsis(std::string &displayName) {
44
// when displaying the type for the Cast window
55
// Director will strip ellipsis off the end of the Display Name
66
// (but ONLY if there are three periods or more)
7-
const std::string::size_type ELLIPSIS_SIZE = 3;
7+
static const std::string::size_type ELLIPSIS_SIZE = 3;
88

99
std::string::size_type ellipsisIndex = displayName.find_last_not_of(".") + 1;
1010

@@ -129,10 +129,10 @@ MoaError Asset::Assets::Info::findIconValue(IconValues::VARIANT &iconValuesVaria
129129

130130
RESOURCE_ID Asset::Assets::Info::getBaseResourceID(unsigned long productVersionMajor) {
131131
// 8, 9, 10, 11, 12
132-
const unsigned long MIN_PRODUCT_VERSION_MAJOR = 8;
133-
const unsigned long MAX_PRODUCT_VERSION_MAJOR = 12;
132+
static const unsigned long MIN_PRODUCT_VERSION_MAJOR = 8;
133+
static const unsigned long MAX_PRODUCT_VERSION_MAJOR = 12;
134134

135-
const RESOURCE_ID ASSET_INFO_MAP_ICON_RESOURCES_COUNT = 6;
135+
static const RESOURCE_ID ASSET_INFO_MAP_ICON_RESOURCES_COUNT = 6;
136136

137137
productVersionMajor = min(MAX_PRODUCT_VERSION_MAJOR, max(MIN_PRODUCT_VERSION_MAJOR, productVersionMajor));
138138
return (RESOURCE_ID)((productVersionMajor - MIN_PRODUCT_VERSION_MAJOR) * ASSET_INFO_MAP_ICON_RESOURCES_COUNT);

source/Formats.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ MoaError Formats::Format::createTempFile(PIMoaFile tempFileInterfacePointer) {
8787
// "ExFi" gives some clue where the temporary file came from if a crash occurs
8888
// use extension of .tmp for a further clue to the file's purpose
8989
// unless other specific extension required
90-
const std::string PREFIX = "~ExFi";
90+
static const std::string PREFIX = "~ExFi";
9191
const std::string PERIOD_TEMP_FILE_EXTENSION = "." + TEMP_FILE_EXTENSION;
9292

9393
std::string filename = PREFIX + PERIOD_TEMP_FILE_EXTENSION;
@@ -112,7 +112,7 @@ MoaError Formats::Format::createTempFile(PIMoaFile tempFileInterfacePointer) {
112112
// we also can't put this in the system temporary directory
113113
// because later we'll call SwapFile on this, which requires
114114
// that it be on the same volume as the file we're swapping with
115-
const size_t ABC_SIZE = 4;
115+
static const size_t ABC_SIZE = 4;
116116
char abc[ABC_SIZE] = "";
117117

118118
size_t index = 2;
@@ -194,7 +194,7 @@ MoaError Formats::Format::setTempFileAttributeHidden(bool hidden, PIMoaFile temp
194194
};
195195

196196
MoaSystemFileSpec sysSpec = "";
197-
const MoaLong SYS_SPEC_SIZE = sizeof(sysSpec);
197+
static const MoaLong SYS_SPEC_SIZE = sizeof(sysSpec);
198198

199199
RETURN_ERR(tempFileInterfacePointer->GetSysSpec(sysSpec, SYS_SPEC_SIZE));
200200

@@ -508,7 +508,7 @@ MoaError Formats::WinPALETTEFormat::getPaletteGlobalHandleLock(std::unique_ptr<G
508508
RETURN_NULL(paletteGlobalHandleLockPointer);
509509

510510
// RIFF is word-aligned
511-
const DWORD WORD_SIZE = sizeof(WORD);
511+
static const DWORD WORD_SIZE = sizeof(WORD);
512512

513513
MMIOINFO mmioinfo = {};
514514
mmioinfo.pchBuffer = paletteGlobalHandleLockPointer->get();
@@ -564,7 +564,7 @@ MoaError Formats::WinPALETTEFormat::writeFile(bool agent, PIMoaFile writeFileInt
564564
}
565565

566566
MoaSystemFileSpec sysSpec = "";
567-
const MoaLong SYS_SPEC_SIZE = sizeof(sysSpec);
567+
static const MoaLong SYS_SPEC_SIZE = sizeof(sysSpec);
568568

569569
RETURN_ERR(this->writeFileInterfacePointer->GetSysSpec(sysSpec, SYS_SPEC_SIZE));
570570

@@ -984,7 +984,7 @@ MoaError Formats::XtraMediaSWFFormat::seekStream(Stream &stream, MoaUlong &size)
984984
// of the Flash Asset's StreamInMedia method
985985
// first, read a ChunkID
986986
CHUNK_ID chunkID = 0;
987-
const MoaStreamCount CHUNK_ID_SIZE = sizeof(chunkID);
987+
static const MoaStreamCount CHUNK_ID_SIZE = sizeof(chunkID);
988988

989989
RETURN_ERR(stream.readSafe(&chunkID, CHUNK_ID_SIZE));
990990

@@ -997,8 +997,8 @@ MoaError Formats::XtraMediaSWFFormat::seekStream(Stream &stream, MoaUlong &size)
997997
chunkID &= 0x00FFFFFF;
998998

999999
// check if the ChunkID is SWF or SWC
1000-
const CHUNK_ID SWF_CHUNK_ID = 0x00535746;
1001-
const CHUNK_ID SWC_CHUNK_ID = 0x00535743;
1000+
static const CHUNK_ID SWF_CHUNK_ID = 0x00535746;
1001+
static const CHUNK_ID SWC_CHUNK_ID = 0x00535743;
10021002

10031003
if (chunkID == SWF_CHUNK_ID || chunkID == SWC_CHUNK_ID) {
10041004
// if it is, the entire stream is the SWF
@@ -1009,12 +1009,12 @@ MoaError Formats::XtraMediaSWFFormat::seekStream(Stream &stream, MoaUlong &size)
10091009
// this value is 1 if the SWF is embedded, FLLK if it's linked
10101010
// it is unused when reading the asset stream
10111011
uint32_t unused = 0;
1012-
const MoaStreamCount UNUSED_SIZE = sizeof(unused);
1012+
static const MoaStreamCount UNUSED_SIZE = sizeof(unused);
10131013

10141014
RETURN_ERR(stream.readSafe(&unused, UNUSED_SIZE));
10151015

10161016
// the SWF size
1017-
const MoaStreamCount SIZE_SIZE = sizeof(size);
1017+
static const MoaStreamCount SIZE_SIZE = sizeof(size);
10181018

10191019
RETURN_ERR(stream.readSafe(&size, SIZE_SIZE));
10201020

@@ -1046,7 +1046,7 @@ MoaError Formats::XtraMediaW3DFormat::seekStream(Stream &stream, MoaUlong &size)
10461046
// of the Shockwave 3D Asset's StreamInMedia method
10471047
// first, read a ChunkID
10481048
CHUNK_ID chunkID = 0;
1049-
const MoaStreamCount CHUNK_ID_SIZE = sizeof(chunkID);
1049+
static const MoaStreamCount CHUNK_ID_SIZE = sizeof(chunkID);
10501050

10511051
RETURN_ERR(stream.readSafe(&chunkID, CHUNK_ID_SIZE));
10521052

@@ -1062,22 +1062,22 @@ MoaError Formats::XtraMediaW3DFormat::seekStream(Stream &stream, MoaUlong &size)
10621062
// if the W3D size is less than 16 bytes, it is invalid
10631063
// the 3DMD ChunkID is likely just a placeholder
10641064
// so that the stream is not empty
1065-
const CHUNK_ID THREEDEM_CHUNK_ID = 0x3344454D;
1066-
const uint32_t MIN_W3D_SIZE = 16;
1065+
static const CHUNK_ID THREEDEM_CHUNK_ID = 0x3344454D;
1066+
static const uint32_t MIN_W3D_SIZE = 16;
10671067

10681068
if (chunkID == THREEDEM_CHUNK_ID) {
10691069
// the next two values are unused when reading the asset stream
10701070
// I suspect they are only used for integration with 3DS Max
10711071
// the size and constant value 0x20000000 look suspiciously similar to
10721072
// the ID tags used in the 3DS model format
10731073
uint32_t unused = 0;
1074-
const MoaStreamCount UNUSED_SIZE = sizeof(unused);
1074+
static const MoaStreamCount UNUSED_SIZE = sizeof(unused);
10751075

10761076
RETURN_ERR(stream.readSafe(&unused, UNUSED_SIZE));
10771077
RETURN_ERR(stream.readSafe(&unused, UNUSED_SIZE));
10781078

10791079
// the W3D size
1080-
const MoaStreamCount SIZE_SIZE = sizeof(size);
1080+
static const MoaStreamCount SIZE_SIZE = sizeof(size);
10811081

10821082
RETURN_ERR(stream.readSafe(&size, SIZE_SIZE));
10831083

@@ -1267,7 +1267,7 @@ MoaError Formats::XtraMediaMixerAsyncFormat::writeFile(bool agent, PIMoaFile wri
12671267
RETURN_NULL(writeStreamInterfacePointer);
12681268

12691269
// CallFunction demands that the first argument be left empty
1270-
const MoaLong ARGS_SIZE = 2;
1270+
static const MoaLong ARGS_SIZE = 2;
12711271
MoaMmValue args[ARGS_SIZE] = { kVoidMoaMmValueInitializer, kVoidMoaMmValueInitializer };
12721272

12731273
MoaChar pathnameSpec[MOA_MAX_PATHNAME] = "";
@@ -1322,7 +1322,7 @@ MoaError Formats::XtraMediaMixerAsyncFormat::cancelFile() {
13221322

13231323
// don't call Stop if we didn't call Save first
13241324
if (saveStatus == kMoaStatus_False) {
1325-
const MoaLong ARGS_SIZE = 1;
1325+
static const MoaLong ARGS_SIZE = 1;
13261326
MoaMmValue args[ARGS_SIZE] = { kVoidMoaMmValueInitializer };
13271327

13281328
RETURN_ERR(drCastMemInterfacePointer->CallFunction(symbols.Stop, ARGS_SIZE, args, NULL));

source/Media.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ MoaError Media::MixerMedia::Lingo::getSymbols() {
246246
}
247247

248248
MoaError Media::MixerMedia::Lingo::getDefaultValues() {
249-
const MoaLong DEFAULT_RESULT_VALUE = IS_ERROR(kMoaErr_InternalError);
250-
const MoaLong DEFAULT_ERR_CODE_VALUE = HRESULT_CODE(kMoaErr_InternalError);
249+
static const MoaLong DEFAULT_RESULT_VALUE = IS_ERROR(kMoaErr_InternalError);
250+
static const MoaLong DEFAULT_ERR_CODE_VALUE = HRESULT_CODE(kMoaErr_InternalError);
251251

252252
RETURN_ERR(mmValueInterfacePointer->IntegerToValue(DEFAULT_RESULT_VALUE, &defaultResultValue));
253253
RETURN_ERR(mmValueInterfacePointer->IntegerToValue(DEFAULT_ERR_CODE_VALUE, &defaultErrCodeValue));
@@ -351,7 +351,7 @@ void Media::MixerMedia::Lingo::callHandler(MoaMmValue &memberValue, MoaError mix
351351
MoaError err2 = mmValueInterfacePointer->IntegerToValue(errCode, &errCodeValue);
352352

353353
// default values so this will theoretically NEVER fail
354-
const MoaLong ARGS_SIZE = 3;
354+
static const MoaLong ARGS_SIZE = 3;
355355
MoaMmValue args[ARGS_SIZE] = { memberValue, err == kMoaErr_NoErr ? resultValue : defaultResultValue, err2 == kMoaErr_NoErr ? errCodeValue : defaultErrCodeValue };
356356

357357
// don't care if this fails, handler may not be defined
@@ -392,7 +392,7 @@ MoaError Media::WinBMPMedia::allocateSourceBitmap(PIMoaReceptorPixels receptorPi
392392
sourceBitmapFileHeaderOptional.emplace();
393393
BITMAPFILEHEADER &sourceBitmapFileHeader = sourceBitmapFileHeaderOptional.value();
394394

395-
const MoaStreamCount SOURCE_BITMAP_FILE_HEADER_SIZE = sizeof(sourceBitmapFileHeader);
395+
static const MoaStreamCount SOURCE_BITMAP_FILE_HEADER_SIZE = sizeof(sourceBitmapFileHeader);
396396

397397
RETURN_ERR(readStreamSafe(&sourceBitmapFileHeader, SOURCE_BITMAP_FILE_HEADER_SIZE, readStreamInterfacePointer));
398398

@@ -413,7 +413,7 @@ MoaError Media::WinBMPMedia::allocateSourceBitmap(PIMoaReceptorPixels receptorPi
413413
// we need this ugly get call because this is technically a char pointer
414414
BITMAPINFOHEADER &sourceBitmapInfoHeader = ((PBITMAPINFO)sourceBitmapInfoPointer.get())->bmiHeader;
415415

416-
const MoaStreamCount SOURCE_BITMAP_INFO_HEADER_SIZE = sizeof(sourceBitmapInfoHeader);
416+
static const MoaStreamCount SOURCE_BITMAP_INFO_HEADER_SIZE = sizeof(sourceBitmapInfoHeader);
417417

418418
RETURN_ERR(readStreamSafe(&sourceBitmapInfoHeader, SOURCE_BITMAP_INFO_HEADER_SIZE, readStreamInterfacePointer));
419419

@@ -552,7 +552,7 @@ bool Media::WinBMPMedia::getImageSize(MoaLong colorSpace, ULONG absWidth, ULONG
552552
#if defined READ_RPCS_INDEXED_RGB || defined READ_RPCS_RGB16
553553
typedef std::map<MoaLong, WORD> BIT_COUNT_MAP;
554554

555-
const BIT_COUNT_MAP _BIT_COUNT_MAP = {
555+
static const BIT_COUNT_MAP _BIT_COUNT_MAP = {
556556
{ RPCS_INDEXED_RGB, 8 },
557557
{ RPCS_RGB16, 16 },
558558
{ RPCS_RGB, 24 },
@@ -584,7 +584,7 @@ bool Media::WinBMPMedia::getSamplesPerPixel(MoaLong colorSpace, MoaShort &sample
584584
#if defined READ_RPCS_INDEXED_RGB || defined READ_RPCS_RGB16
585585
typedef std::map<MoaLong, MoaShort> SAMPLES_PER_PIXEL_MAP;
586586

587-
const SAMPLES_PER_PIXEL_MAP _SAMPLES_PER_PIXEL_MAP = {
587+
static const SAMPLES_PER_PIXEL_MAP _SAMPLES_PER_PIXEL_MAP = {
588588
{ RPCS_INDEXED_RGB, 1 },
589589
{ RPCS_RGB16, 3 },
590590
{ RPCS_RGB, 3 },
@@ -621,14 +621,14 @@ bool Media::WinBMPMedia::getColorTableIndexedRGB(BITMAPINFO &bitmapInfo, MoaPixe
621621
return false;
622622
}
623623

624-
const MoaLong ENTRY_SIZE = sizeof(TMoaCTableEntry);
624+
static const MoaLong ENTRY_SIZE = sizeof(TMoaCTableEntry);
625625

626626
if (!ENTRY_SIZE) {
627627
return false;
628628
}
629629

630-
const MoaLong ENTRIES_SIZE = sizeof(pixelFormat.cs.colorTable.Entry);
631-
const MoaLong NUM_ENTRIES_ALLOC = ENTRIES_SIZE / ENTRY_SIZE;
630+
static const MoaLong ENTRIES_SIZE = sizeof(pixelFormat.cs.colorTable.Entry);
631+
static const MoaLong NUM_ENTRIES_ALLOC = ENTRIES_SIZE / ENTRY_SIZE;
632632

633633
pixelFormat.cs.colorTable.Header.iNumEntries = colorsUsed;
634634
pixelFormat.cs.colorTable.Header.iNumEntriesAlloc = NUM_ENTRIES_ALLOC;
@@ -713,15 +713,15 @@ bool Media::WinBMPMedia::getBitmapInfoColorsSize(const BITMAPINFOHEADER &bitmapI
713713
return false;
714714
}
715715

716-
const DWORD RGBQUAD_SIZE = sizeof(RGBQUAD);
716+
static const DWORD RGBQUAD_SIZE = sizeof(RGBQUAD);
717717

718718
colorsSize = colorsUsed * RGBQUAD_SIZE;
719719
return true;
720720
}
721721

722722
if (bitmapInfoHeader.biCompression == BI_BITFIELDS) {
723-
const DWORD DWORD_SIZE = sizeof(DWORD);
724-
const DWORD COLOR_MASKS_SIZE = DWORD_SIZE * 3;
723+
static const DWORD DWORD_SIZE = sizeof(DWORD);
724+
static const DWORD COLOR_MASKS_SIZE = DWORD_SIZE * 3;
725725

726726
colorsSize = COLOR_MASKS_SIZE;
727727
}
@@ -785,7 +785,7 @@ MoaError Media::WinBMPMedia::getPixelFormat(PIMoaReceptorPixels receptorPixelsIn
785785
}
786786

787787
// no thumbnail size, only the canonical size available
788-
const MoaLong DIMENSION_COUNT = 1;
788+
static const MoaLong DIMENSION_COUNT = 1;
789789

790790
ULONG absSourceWidth = abs(sourceBitmapInfoHeader.biWidth);
791791
pixelFormat.dim.pixels.x = absSourceWidth;
@@ -795,7 +795,7 @@ MoaError Media::WinBMPMedia::getPixelFormat(PIMoaReceptorPixels receptorPixelsIn
795795

796796
// both should ideally be provided
797797
// (PNG Writer just gives up if there's no TOP_DOWN option)
798-
const MoaLong DIRECTIONS_SIZE = 2;
798+
static const MoaLong DIRECTIONS_SIZE = 2;
799799
MoaLong DIRECTIONS[DIRECTIONS_SIZE] = { BOTTOM_UP, TOP_DOWN };
800800

801801
RETURN_ERR(
@@ -923,7 +923,7 @@ MoaError Media::WinBMPMedia::getPixelFormat(PIMoaReceptorPixels receptorPixelsIn
923923
pixelFormat.cs.flags = pixelFormat.cs.colorSpace == RPCS_RGBA ? RPCSFLAGS_TRANSPARENT : RPCSFLAGS_NONE;
924924

925925
// can't be an integer divide: must be able to round down OR up to nearest number
926-
const double METERS_TO_INCHES = 0.0254;
926+
static const double METERS_TO_INCHES = 0.0254;
927927

928928
pixelFormat.dim.resolution.x = (MoaCoord)round(METERS_TO_INCHES * bitmapInfoHeader.biXPelsPerMeter);
929929
pixelFormat.dim.resolution.y = (MoaCoord)round(METERS_TO_INCHES * bitmapInfoHeader.biYPelsPerMeter);
@@ -1112,7 +1112,7 @@ MoaError Media::WinBMPMedia::getMappedView(PIMoaReceptorPixels receptorPixelsInt
11121112
// it creates its own internal file mapping
11131113
// so because it is a mapped view, we can use VirtualQuery to get the size
11141114
MEMORY_BASIC_INFORMATION memoryBasicInformation = {};
1115-
const SIZE_T MEMORY_BASIC_INFORMATION_SIZE = sizeof(memoryBasicInformation);
1115+
static const SIZE_T MEMORY_BASIC_INFORMATION_SIZE = sizeof(memoryBasicInformation);
11161116

11171117
RETURN_ERR(
11181118
osErr(

source/Mixer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ unsigned int __declspec(noinline) threadNoInline(void* argList) {
165165
#endif
166166

167167
// this doesn't really need to be precise, just needs to be some kinda small amount of time
168-
const std::chrono::milliseconds MILLISECONDS(25);
168+
static const std::chrono::milliseconds MILLISECONDS(25);
169169

170170
unsigned int result = 0;
171171
MoaError err = kMoaErr_NoErr;
@@ -215,16 +215,16 @@ void Mixer::Window::create() {
215215
}
216216
}
217217

218-
const TCHAR className[] = TEXT("Mixer");
218+
static const TCHAR CLASS_NAME[] = TEXT("Mixer");
219219

220220
if (!registeredClass) {
221221
WNDCLASSEX windowClassEx = {};
222-
const UINT WINDOW_CLASS_EX_SIZE = sizeof(windowClassEx);
222+
static const UINT WINDOW_CLASS_EX_SIZE = sizeof(windowClassEx);
223223

224224
windowClassEx.cbSize = WINDOW_CLASS_EX_SIZE;
225225
windowClassEx.lpfnWndProc = proc;
226226
windowClassEx.hInstance = moduleHandle;
227-
windowClassEx.lpszClassName = className;
227+
windowClassEx.lpszClassName = CLASS_NAME;
228228

229229
registeredClass = RegisterClassEx(&windowClassEx);
230230

@@ -235,7 +235,7 @@ void Mixer::Window::create() {
235235

236236
handle = CreateWindowEx(
237237
NULL,
238-
className,
238+
CLASS_NAME,
239239
TEXT("Mixer"),
240240
WS_CHILD,
241241
CW_USEDEFAULT,

source/MoaIDHash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace std {
2121
/*
2222
struct MoaIDComparer {
2323
bool operator()(const MoaID &moaID, const MoaID &moaID2) const {
24-
const size_t MOA_ID_SIZE = sizeof(MoaID);
24+
static const size_t MOA_ID_SIZE = sizeof(MoaID);
2525
return memcmp(&moaID, &moaID2, MOA_ID_SIZE) == -1;
2626
}
2727
};

source/Path.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bool Path::filterPatternExtensions(std::string filterPattern, EXTENSION_MAPPED_V
1111
// clear because we want to pass out a new mapped vector instead of appending
1212
extensions.clear();
1313

14-
const std::regex FILTER_PATTERN_EXTENSIONS("^\\*\\.([^\\.;]+);*");
14+
static const std::regex FILTER_PATTERN_EXTENSIONS("^\\*\\.([^\\.;]+);*");
1515

1616
std::smatch matches = {};
1717

@@ -402,7 +402,7 @@ std::string Path::Info::toBasename(const std::string &filename) {
402402
}
403403

404404
std::string Path::Info::toExtension(const std::string &filename) {
405-
const std::string::size_type PERIOD_SIZE = sizeof(PERIOD);
405+
static const std::string::size_type PERIOD_SIZE = sizeof(PERIOD);
406406

407407
std::string::size_type periodIndex = filename.rfind(PERIOD);
408408

@@ -608,7 +608,7 @@ MoaError Path::Info::incrementFilename() {
608608
unsigned long number = 2;
609609

610610
{
611-
const std::regex INCREMENT_FILENAME("^([^\\(]*)\\((\\d{0,3})\\)(.*)$");
611+
static const std::regex INCREMENT_FILENAME("^([^\\(]*)\\((\\d{0,3})\\)(.*)$");
612612

613613
std::smatch matches = {};
614614

@@ -620,8 +620,8 @@ MoaError Path::Info::incrementFilename() {
620620
// if no (brackets) found, stick them on the end of the basename, after a space
621621
if (std::regex_search(filenameOptional.value(), matches, INCREMENT_FILENAME)
622622
&& matches.length() > 3) {
623-
const unsigned long MIN_NUMBER = 1;
624-
const unsigned long MAX_NUMBER = 999;
623+
static const unsigned long MIN_NUMBER = 1;
624+
static const unsigned long MAX_NUMBER = 999;
625625

626626
basename = matches[1];
627627

source/Registry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MoaError Registry::Entry::getValueLong(ConstPMoaChar keyStringPointer, MoaLong &
44
RETURN_NULL(keyStringPointer);
55
RETURN_NULL(registryEntryDictInterfacePointer);
66

7-
const MoaLong VALUE_SIZE = sizeof(value);
7+
static const MoaLong VALUE_SIZE = sizeof(value);
88

99
MoaLong defaultValue = value;
1010

@@ -22,6 +22,6 @@ MoaError Registry::Entry::setValueLong(ConstPMoaChar keyStringPointer, MoaLong v
2222
RETURN_NULL(keyStringPointer);
2323
RETURN_NULL(registryEntryDictInterfacePointer);
2424

25-
const MoaLong VALUE_SIZE = sizeof(value);
25+
static const MoaLong VALUE_SIZE = sizeof(value);
2626
return registryEntryDictInterfacePointer->Put(kMoaDictType_Long, &value, VALUE_SIZE, keyStringPointer);
2727
}

0 commit comments

Comments
 (0)