LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dont-use-sbbytebuffer.patch of Package Quarter (Project home:mayerjosua:Finroc)

diff -Naur Quarter-1.0.0.orig/src/Quarter/QuarterWidget.cpp Quarter-1.0.0/src/Quarter/QuarterWidget.cpp
--- Quarter-1.0.0.orig/src/Quarter/QuarterWidget.cpp	2014-12-27 23:11:39.083489628 +0100
+++ Quarter-1.0.0/src/Quarter/QuarterWidget.cpp	2014-12-27 23:35:58.255332056 +0100
@@ -970,7 +970,7 @@
     QFile file(filenametmp);
     if (file.open(QIODevice::ReadOnly)){
       QByteArray fileContents = file.readAll();
-      stateMachine = ScXML::readBuffer(SbByteBuffer(fileContents.size(), fileContents.constData()));
+      stateMachine = ScXML::readBuffer(fileContents.constData());
       file.close();
     }
   }