Bug#897761: patch
Control: tags -1 +patch
Here's a patch for this one. Alas, fixing the gcc-8 FTBFS uncovers an
unrelated FTBFS with tex crap, which would need to be fixed as well.
--
⢀⣴⠾⠻⢶⣦⠀ So a Hungarian gypsy mountainman, lumberjack by day job,
⣾⠁⢰⠒⠀⣿⡁ brigand by, uhm, hobby, invented a dish: goulash on potato
⢿⡄⠘⠷⠚⠋⠀ pancakes. Then the Polish couldn't decide which of his
⠈⠳⣄⠀⠀⠀⠀ adjectives to use for the dish's name.
--- gnuift-0.1.14+ds.orig/libGIFTAcDistanceMatrix/include/CPersistentMatrix.h
+++ gnuift-0.1.14+ds/libGIFTAcDistanceMatrix/include/CPersistentMatrix.h
@@ -58,7 +58,7 @@ public:
bool putLineVector(long inY,
CLineVector const& outVector);
- bool setValue(long inX,
+ void setValue(long inX,
long inY,
T const& inValue);
@@ -190,19 +190,17 @@ bool CPersistentMatrix<T>::putLineVector
}
template<class T>
-bool CPersistentMatrix<T>::setValue(long inX,
+void CPersistentMatrix<T>::setValue(long inX,
long inY,
T const& inValue){
if(!mContent)
- return false;
+ return;
mContent->seekp((inY * mXSize + inX) * sizeof(T) );
mContent->write(&inValue,sizeof(inValue));
mContent->flush();
-
- return (*mContent);
}
///
--- gnuift-0.1.14+ds.orig/libGIFTAcDistanceMatrix/include/CPersistentVector.h
+++ gnuift-0.1.14+ds/libGIFTAcDistanceMatrix/include/CPersistentVector.h
@@ -59,7 +59,7 @@ public:
bool read(istream& inStream,
long inNumRecords);
///
- bool write(ostream& outStream)const;
+ void write(ostream& outStream)const;
///
void init(T const& inDefaultValue);
};
@@ -117,7 +117,7 @@ bool CPersistentVector<T>::read(istream&
}
template<class T>
-bool CPersistentVector<T>::write(ostream& outStream)const{
+void CPersistentVector<T>::write(ostream& outStream)const{
for(typename CPersistentVector<T>::const_iterator i=this->begin();
i!=this->end();
i++){
@@ -125,7 +125,6 @@ bool CPersistentVector<T>::write(ostream
*i);
}
outStream << flush;
- return outStream;
}
#endif
Reply to: