summaryrefslogtreecommitdiffstats
path: root/libksirtet
diff options
context:
space:
mode:
Diffstat (limited to 'libksirtet')
-rw-r--r--libksirtet/lib/types.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libksirtet/lib/types.cpp b/libksirtet/lib/types.cpp
index ae91c4d5..54aa79e6 100644
--- a/libksirtet/lib/types.cpp
+++ b/libksirtet/lib/types.cpp
@@ -169,20 +169,20 @@ Stream::Stream(int _mode)
{
setDevice(&buf);
Q_ASSERT( _mode==IO_ReadOnly || _mode==IO_WriteOnly );
- buf.open((TQIODevice_OpenModeFlag)_mode);
+ buf.open(_mode);
}
void Stream::clear()
{
buf.close();
- buf.open((TQIODevice_OpenModeFlag)(mode | IO_Truncate));
+ buf.open(mode | IO_Truncate);
}
void Stream::setArray(TQByteArray a)
{
buf.close();
buf.setBuffer(a);
- buf.open((TQIODevice_OpenModeFlag)mode);
+ buf.open(mode);
}
bool ReadingStream::readOk()