Author: Not specified Language: diff
Description: Not specified Timestamp: 2013-05-23 10:06:06 +0000
View raw paste Reply
  1. --- qca_basic.h 2013-05-23 13:31:38.363010708 +0400
  2. +++ qca_basic.h 2013-05-23 14:02:34.146955529 +0400
  3. @@ -307,11 +307,11 @@
  4.            might want to use code like this:
  5.            \code
  6.  QFile f( "file.dat" );
  7. -if ( f1.open( IO_ReadOnly ) )
  8. +if ( f.open( QIODevice::ReadOnly ) )
  9.  {
  10.         QCA::Hash hashObj("sha1");
  11. -       hashObj.update( &f1 );
  12. -       QString output = hashObj.final() ) ),
  13. +       hashObj.update( &f );
  14. +       QByteArray output = hashObj.final().toByteArray();
  15.  }
  16.            \endcode
  17.         */
  18. @@ -359,7 +359,7 @@
  19.            string
  20.  
  21.            This is a convenience method that returns the
  22. -          hash of a QSeecureArray as a hexadecimal
  23. +          hash of a SecureArray as a hexadecimal
  24.            representation encoded in a QString.
  25.  
  26.            \param array the QByteArray to hash
  27.  
View raw paste Reply