mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	core: convert event.c to C++
No code changes. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									48f7828d10
								
							
						
					
					
						commit
						19148d30e7
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -51,7 +51,7 @@ SOURCES += subsurface-mobile-main.cpp \
 | 
			
		|||
	core/dive.cpp \
 | 
			
		||||
	core/divecomputer.cpp \
 | 
			
		||||
	core/divefilter.cpp \
 | 
			
		||||
	core/event.c \
 | 
			
		||||
	core/event.cpp \
 | 
			
		||||
	core/eventtype.cpp \
 | 
			
		||||
	core/filterconstraint.cpp \
 | 
			
		||||
	core/filterpreset.cpp \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -79,7 +79,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
 | 
			
		|||
	divesitehelpers.h
 | 
			
		||||
	downloadfromdcthread.cpp
 | 
			
		||||
	downloadfromdcthread.h
 | 
			
		||||
	event.c
 | 
			
		||||
	event.cpp
 | 
			
		||||
	event.h
 | 
			
		||||
	eventtype.cpp
 | 
			
		||||
	eventtype.h
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -49,7 +49,7 @@ struct event *create_event(unsigned int time, int type, int flags, int value, co
 | 
			
		|||
	unsigned int size, len = strlen(name);
 | 
			
		||||
 | 
			
		||||
	size = sizeof(*ev) + len + 1;
 | 
			
		||||
	ev = malloc(size);
 | 
			
		||||
	ev = (struct event*) malloc(size);
 | 
			
		||||
	if (!ev)
 | 
			
		||||
		return NULL;
 | 
			
		||||
	memset(ev, 0, size);
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue