Skip to content

Commit

Permalink
const correctness fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingrater committed Jun 8, 2013
1 parent 663de8f commit abddeee
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
Binary file modified common2010.suo
Binary file not shown.
24 changes: 12 additions & 12 deletions src/common.visualdproj
Expand Up @@ -536,8 +536,8 @@ cd %CWD%</preBuildCommand>
<useArrayBounds>0</useArrayBounds>
<noboundscheck>1</noboundscheck>
<useSwitchError>0</useSwitchError>
<useUnitTests>1</useUnitTests>
<useInline>1</useInline>
<useUnitTests>0</useUnitTests>
<useInline>0</useInline>
<release>1</release>
<preservePaths>0</preservePaths>
<warnings>0</warnings>
Expand All @@ -550,8 +550,8 @@ cd %CWD%</preBuildCommand>
<Dversion>2</Dversion>
<ignoreUnsupportedPragmas>0</ignoreUnsupportedPragmas>
<compiler>0</compiler>
<otherDMD>0</otherDMD>
<program>$(DMDInstallDir)windows\bin\dmd.exe</program>
<otherDMD>1</otherDMD>
<program>$(DMDInstallDir)windows\bin-nostd\dmd.exe</program>
<imppath>$(ProjectDir)\..\..\druntime\import;$(ProjectDir)\..\..\phobos;</imppath>
<fileImppath />
<outdir>$(ConfigurationName)</outdir>
Expand Down Expand Up @@ -594,14 +594,14 @@ cd %CWD%</preBuildCommand>
<resfile />
<exefile>$(OutDir)\$(ProjectName).exe</exefile>
<useStdLibPath>1</useStdLibPath>
<additionalOptions>-defaultlib=phobosnogc -debuglib=phobosnogc $(ProjectDir)\..\..\druntime\lib\gcstub.obj</additionalOptions>
<preBuildCommand>set CWD=%CD%
cd $(ProjectDir)\..\..\druntime
$(DMDInstallDir)windows\bin\make -f win32nogc.mak
if errorlevel 1 goto reportError
cd $(ProjectDir)\..\..\phobos
$(DMDInstallDir)windows\bin\make -f win32nogc.mak
if errorlevel 1 goto reportError
<additionalOptions>-defaultlib=phobosnogc64 -debuglib=phobosnogc64 -L/LIBPATH:&quot;$(ProjectDir)\..\..\thBase\lib&quot; -L/LIBPATH:&quot;$(ProjectDir)\..\..\phobos&quot;</additionalOptions>
<preBuildCommand>set CWD=%CD%
cd $(ProjectDir)\..\..\druntime
$(DMDInstallDir)windows\bin\make -f win32nogc.mak
if errorlevel 1 goto reportError
cd $(ProjectDir)\..\..\phobos
$(DMDInstallDir)windows\bin\make -f win32nogc.mak
if errorlevel 1 goto reportError
cd %CWD%</preBuildCommand>
<postBuildCommand />
<filesToClean>*.obj;*.cmd;*.build;*.json;*.dep</filesToClean>
Expand Down
1 change: 0 additions & 1 deletion src/thBase/chunkfile.d
Expand Up @@ -93,7 +93,6 @@ class Chunkfile
{
assert(m_operation != Operation.Write, "can not read in write operation");
assert(m_readInfo.size == 0 || m_readInfo.top.bytesLeft >= bytes, "reading over chunk boundary");
size_t size;
if(m_operation == Operation.Read)
{
m_file.skip(bytes);
Expand Down
4 changes: 2 additions & 2 deletions src/thBase/stream.d
Expand Up @@ -226,9 +226,9 @@ class FileInStream : IInputStream
RawFile m_file;

public:
this(string filename)
this(const(char)[] filename)
{
m_file = RawFile(filename,"rb");
m_file = RawFile(filename, "rb");
if(!m_file.isOpen())
{
throw New!StreamException(format("Couldn't open file '%s' for reading", filename));
Expand Down

0 comments on commit abddeee

Please sign in to comment.