[Spice-devel] [vdagent-win PATCH 07/13] file_xfer: Remove too C syntax for C++

Christophe Fergeau cfergeau at redhat.com
Mon May 28 13:05:56 UTC 2018


I would be a bit more verbose in the commit log, just state that it's
about removing a struct typedef as in C++ simply declaring the struct
will create both the 'struct Foo' and 'Foo' types.

Christophe

On Mon, May 28, 2018 at 09:58:00AM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  vdagent/file_xfer.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/vdagent/file_xfer.h b/vdagent/file_xfer.h
> index 029d0e7..747c29c 100644
> --- a/vdagent/file_xfer.h
> +++ b/vdagent/file_xfer.h
> @@ -21,7 +21,7 @@
>  #include <map>
>  #include "vdcommon.h"
>  
> -typedef struct FileXferTask {
> +struct FileXferTask {
>      FileXferTask(HANDLE _handle, uint64_t _size, const TCHAR* _name):
>      handle(_handle), size(_size), pos(0) {
>          // FIXME: should raise an error if name is too long..
> @@ -36,7 +36,7 @@ typedef struct FileXferTask {
>      TCHAR name[MAX_PATH];
>  
>      void cancel();
> -} FileXferTask;
> +};
>  
>  typedef std::map<uint32_t, FileXferTask*> FileXferTasks;
>  
> -- 
> 2.17.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180528/532bd67e/attachment.sig>


More information about the Spice-devel mailing list