projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r246: More modifications for MSVC
[ctsim.git]
/
libctsim
/
array2dfile.cpp
diff --git
a/libctsim/array2dfile.cpp
b/libctsim/array2dfile.cpp
index 2999470e871e85af572312a63f941e796ab9ae0a..b16c7d3b7810db59fd734e8cca62c24fe73e1201 100644
(file)
--- a/
libctsim/array2dfile.cpp
+++ b/
libctsim/array2dfile.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: array2dfile.cpp,v 1.1
4 2000/12/04 19:50:57
kevin Exp $
+** $Id: array2dfile.cpp,v 1.1
5 2000/12/06 01:46:43
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-392,7
+392,7
@@
Array2dFile::headerWrite (frnetorderstream& fs)
fs.writeFloat64 (m_offsetPV);
fs.writeFloat64 (m_scalePV);
fs.writeFloat64 (m_offsetPV);
fs.writeFloat64 (m_scalePV);
- m_headersize =
fs.tellp(
);
+ m_headersize =
static_cast<kuint16>(fs.tellp()
);
fs.seekp (0);
fs.writeInt16 (m_headersize);
fs.seekp (0);
fs.writeInt16 (m_headersize);
@@
-480,12
+480,12
@@
Array2dFile::labelsRead (frnetorderstream& fs)
kuint16 strLength;
fs.readInt16 (strLength);
kuint16 strLength;
fs.readInt16 (strLength);
- char*
l
abelStr = new char [strLength+1];
- fs.read (
l
abelStr, strLength);
-
l
abelStr[strLength] = 0;
+ char*
pszL
abelStr = new char [strLength+1];
+ fs.read (
pszL
abelStr, strLength);
+
pszL
abelStr[strLength] = 0;
- Array2dFileLabel* pLabel = new Array2dFileLabel
(labelType, l
abelStr, calcTime);
- delete
l
abelStr;
\r
+ Array2dFileLabel* pLabel = new Array2dFileLabel
(labelType, pszL
abelStr, calcTime);
+ delete
pszL
abelStr;
\r
\r
pLabel->setDateTime (year, month, day, hour, minute, second);
m_labels.push_back (pLabel);
\r
\r
pLabel->setDateTime (year, month, day, hour, minute, second);
m_labels.push_back (pLabel);
\r